public class GermanAnalyzer extends Analyzer
| Modifier and Type | Field and Description |
|---|---|
static String[] |
GERMAN_STOP_WORDS
List of typical german stopwords.
|
| Constructor and Description |
|---|
GermanAnalyzer()
Builds an analyzer with the default stop words
(
GERMAN_STOP_WORDS). |
GermanAnalyzer(File stopwords)
Builds an analyzer with the given stop words.
|
GermanAnalyzer(Map stopwords)
Builds an analyzer with the given stop words.
|
GermanAnalyzer(String[] stopwords)
Builds an analyzer with the given stop words.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setStemExclusionTable(File exclusionlist)
Builds an exclusionlist from the words contained in the given file.
|
void |
setStemExclusionTable(Map exclusionlist)
Builds an exclusionlist from a Hashtable.
|
void |
setStemExclusionTable(String[] exclusionlist)
Builds an exclusionlist from an array of Strings.
|
TokenStream |
tokenStream(String fieldName,
Reader reader)
Creates a TokenStream which tokenizes all the text in the provided Reader.
|
close, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStreampublic static final String[] GERMAN_STOP_WORDS
public GermanAnalyzer()
GERMAN_STOP_WORDS).public GermanAnalyzer(String[] stopwords)
public GermanAnalyzer(Map stopwords)
public GermanAnalyzer(File stopwords) throws IOException
IOExceptionpublic void setStemExclusionTable(String[] exclusionlist)
public void setStemExclusionTable(Map exclusionlist)
public void setStemExclusionTable(File exclusionlist) throws IOException
IOExceptionpublic TokenStream tokenStream(String fieldName, Reader reader)
tokenStream in class AnalyzerCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.