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(String dictionary)
Initialize the stemmer with a dictionary
|
String |
stem(String token)
Take a single token in as a
String, stem the token, and return the stemmed
token as a String. |
String stem(String token)
String, stem the token, and return the stemmed
token as a String.token - the input token to stemvoid initialize(String dictionary) throws FileNotFoundException, ParseException
dictionary - -FileNotFoundException - -ParseException - -Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.