Closeable, AutoCloseablepublic final class SnowballFilter
extends org.apache.lucene.analysis.TokenFilter
org.tartarus.snowball.ext.
NOTE: SnowballFilter expects lowercased text.
TurkishLowerCaseFilter.
LowerCaseFilter.
| Constructor | Description |
|---|---|
SnowballFilter(org.apache.lucene.analysis.TokenStream in,
String name) |
Construct the named stemming filter.
|
SnowballFilter(org.apache.lucene.analysis.TokenStream input,
SnowballProgram stemmer) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
incrementToken() |
Returns the next input Token, after being stemmed
|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic SnowballFilter(org.apache.lucene.analysis.TokenStream input,
SnowballProgram stemmer)
public SnowballFilter(org.apache.lucene.analysis.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 org.apache.lucene.analysis.TokenStreamIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.