public class SnowballFilter extends TokenFilter
org.tartarus.snowball.ext
.input
Constructor and Description |
---|
SnowballFilter(TokenStream input,
SnowballProgram stemmer) |
SnowballFilter(TokenStream in,
java.lang.String name)
Construct the named stemming filter.
|
Modifier and Type | Method and Description |
---|---|
Token |
next(Token reusableToken)
Returns the next input Token, after being stemmed
|
close, reset
next
public SnowballFilter(TokenStream input, SnowballProgram stemmer)
public SnowballFilter(TokenStream in, java.lang.String name)
org.tartarus.snowball.ext
.
The name of a stemmer is the part of the class name before "Stemmer",
e.g., the stemmer in EnglishStemmer
is named "English".in
- the input tokens to stemname
- the name of a stemmerpublic final Token next(Token reusableToken) throws java.io.IOException
next
in class TokenStream
reusableToken
- a Token that may or may not be used to
return; this parameter should never be null (the callee
is not required to check for null before using it, but it is a
good idea to assert that it is not null.)java.io.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.