csli.util.nlp.stem
Class DictionaryStemmer

java.lang.Object
  extended by csli.util.nlp.Stemmer
      extended by 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

Constructor Summary
DictionaryStemmer()
           
 
Method Summary
 String stem(String wordString)
          Stem a word string.
 
Methods inherited from class csli.util.nlp.Stemmer
stem, stem, stemScored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryStemmer

public DictionaryStemmer()
Method Detail

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