|
table_lookup_stemmer
table_lookup_stemmer (term, stem_file)
|
Added in advas.0.0.2
Return the term's stem given in a stem file.
In: |
term |
a string |
|
stem_file |
filename of the stem file, given as a string |
Out: |
|
returns the stem according to the given term. If the term does not appear in the stem file an empty string ("") is returned. If the stem file cannot be accessed, an empty string is returned. |
Each line of the stem file must have the format "term : stem". The stem file must be sorted in alphabetical order.
|
|