public interface Stemmer
stem(), which takes a single token in as a String and returns the
stemmed token as a String. initialize (), which takes a dictionary
path as a String loads it.| Modifier and Type | Method and Description |
|---|---|
void |
initialize(java.lang.String dictionary)
Initialize the stemmer with a dictionary
|
java.lang.String |
stem(java.lang.String token)
Take a single token in as a
String, stem the token, and return the stemmed
token as a String. |
java.lang.String stem(java.lang.String token)
String, stem the token, and return the stemmed
token as a String.token - the input token to stemvoid initialize(java.lang.String dictionary)
throws java.io.FileNotFoundException,
java.text.ParseException
java.io.FileNotFoundExceptionjava.text.ParseExceptionCopyright © 2013. All Rights Reserved.