|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Stemmer
Interface for stemmer. Two methods are defined:
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.
Method Summary | |
---|---|
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 . |
Method Detail |
---|
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 stem
void initialize(java.lang.String dictionary) throws java.io.FileNotFoundException, java.text.ParseException
java.io.FileNotFoundException
java.text.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |