public final class FrenchAnalyzer extends Analyzer
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
FRENCH_STOP_WORDS
Extended list of typical French stopwords.
|
Constructor and Description |
---|
FrenchAnalyzer()
Builds an analyzer with the default stop words (
FRENCH_STOP_WORDS ). |
FrenchAnalyzer(java.io.File stopwords)
Builds an analyzer with the given stop words.
|
FrenchAnalyzer(java.lang.String[] stopwords)
Builds an analyzer with the given stop words.
|
Modifier and Type | Method and Description |
---|---|
void |
setStemExclusionTable(java.io.File exclusionlist)
Builds an exclusionlist from the words contained in the given file.
|
void |
setStemExclusionTable(java.util.Map exclusionlist)
Builds an exclusionlist from a Map.
|
void |
setStemExclusionTable(java.lang.String[] exclusionlist)
Builds an exclusionlist from an array of Strings.
|
TokenStream |
tokenStream(java.lang.String fieldName,
java.io.Reader reader)
Creates a TokenStream which tokenizes all the text in the provided Reader.
|
close, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
public static final java.lang.String[] FRENCH_STOP_WORDS
public FrenchAnalyzer()
FRENCH_STOP_WORDS
).public FrenchAnalyzer(java.lang.String[] stopwords)
public FrenchAnalyzer(java.io.File stopwords) throws java.io.IOException
java.io.IOException
public void setStemExclusionTable(java.lang.String[] exclusionlist)
public void setStemExclusionTable(java.util.Map exclusionlist)
public void setStemExclusionTable(java.io.File exclusionlist) throws java.io.IOException
java.io.IOException
public final TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
tokenStream
in class Analyzer
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.