org.apache.lucene.analysis.fr
public final class FrenchAnalyzer extends Analyzer
Modifier and Type | Field and Description |
---|---|
static 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(File stopwords)
Builds an analyzer with the given stop words.
|
FrenchAnalyzer(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, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
public static final String[] FRENCH_STOP_WORDS
public FrenchAnalyzer()
FRENCH_STOP_WORDS
).public FrenchAnalyzer(String[] stopwords)
public FrenchAnalyzer(File stopwords) throws IOException
IOException
public void setStemExclusionTable(String[] exclusionlist)
public void setStemExclusionTable(Hashtable exclusionlist)
public void setStemExclusionTable(File exclusionlist) throws IOException
IOException
public final TokenStream tokenStream(String fieldName, Reader reader)
tokenStream
in class Analyzer
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.