public class SnowballAnalyzer extends Analyzer
StandardTokenizer with StandardFilter, LowerCaseFilter, StopFilter and SnowballFilter.
Available stemmers are listed in net.sf.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".| Constructor and Description |
|---|
SnowballAnalyzer(String name)
Builds the named analyzer with no stop words.
|
SnowballAnalyzer(String name,
String[] stopWords)
Builds the named analyzer with the given stop words.
|
| Modifier and Type | Method and Description |
|---|---|
TokenStream |
tokenStream(String fieldName,
Reader reader)
|
close, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStreampublic SnowballAnalyzer(String name)
public TokenStream tokenStream(String fieldName, Reader reader)
tokenStream in class AnalyzerCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.