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(Hashtable 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(Hashtable 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.
|
getPositionIncrementGap, tokenStream
public static final String[] GERMAN_STOP_WORDS
public GermanAnalyzer()
GERMAN_STOP_WORDS
).public GermanAnalyzer(String[] stopwords)
public GermanAnalyzer(Hashtable stopwords)
public GermanAnalyzer(File stopwords) throws IOException
IOException
public void setStemExclusionTable(String[] exclusionlist)
public void setStemExclusionTable(Hashtable exclusionlist)
public void setStemExclusionTable(File exclusionlist) throws IOException
IOException
public TokenStream tokenStream(String fieldName, Reader reader)
tokenStream
in class Analyzer
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.