csli.util.nlp.stem
Class DictionaryStemmer
java.lang.Object
csli.util.nlp.Stemmer
csli.util.nlp.stem.DictionaryStemmer
- All Implemented Interfaces:
- Serializable
public class DictionaryStemmer
- extends Stemmer
Dictionary-based stemmer - loads morphological pairs from a dictionary file into a lookup table. Rule files should be
in /util/ext - there's one called oald_morph_pairs.txt derived from the Oxford Advanced Learner's Dictionary of
English.
- Author:
- mpurver
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DictionaryStemmer
public DictionaryStemmer()
stem
public String stem(String wordString)
- Description copied from class:
Stemmer
- Stem a word string. Should return NULL on error.
- Specified by:
stem in class Stemmer
- Parameters:
wordString - the word string to stem
- Returns:
- the word stem (root form) as a string