public final class SnowballFilter extends TokenFilter
org.tartarus.snowball.ext
.
NOTE: SnowballFilter expects lowercased text.
TurkishLowerCaseFilter
.
LowerCaseFilter
.
AttributeSource.AttributeFactory, AttributeSource.State
input
Constructor and Description |
---|
SnowballFilter(TokenStream input,
SnowballProgram stemmer) |
SnowballFilter(TokenStream in,
String name)
Construct the named stemming filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken()
Returns the next input Token, after being stemmed
|
close, end, reset
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public SnowballFilter(TokenStream input, SnowballProgram stemmer)
public SnowballFilter(TokenStream in, 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 boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException