public class LuteceFrenchAnalyzer
extends org.apache.lucene.analysis.Analyzer
FrenchAnalyzer
, adding ElisionFilter
and ASCIIFoldingFilter
.
StandardTokenizer
ElisionFilter
StandardFilter
StopFilter
ASCIIFoldingFilter
FrenchStemFilter
LowerCaseFilter
FrenchAnalyzer
,
ElisionFilter
,
ASCIIFoldingFilter
,
Analyzer
Modifier and Type | Field and Description |
---|---|
static String[] |
FRENCH_STOP_WORDS
Extended list of typical French stopwords.
|
Constructor and Description |
---|
LuteceFrenchAnalyzer()
Deprecated.
Use
LuteceFrenchAnalyzer(Version) instead. |
LuteceFrenchAnalyzer(File stopwords)
Deprecated.
Use
LuteceFrenchAnalyzer(Version, File) instead |
LuteceFrenchAnalyzer(String[] stopwords)
Deprecated.
Use
LuteceFrenchAnalyzer(Version,
String[]) instead. |
LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion)
Builds an analyzer with the default stop words (
FRENCH_STOP_WORDS ). |
LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion,
File stopwords)
Builds an analyzer with the given stop words.
|
LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion,
String[] stopwords)
Builds an analyzer with the given stop words.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.TokenStream |
reusableTokenStream(String fieldName,
Reader reader) |
void |
setStemExclusionTable(File exclusionlist)
Builds an exclusionlist from the words contained in the given file.
|
void |
setStemExclusionTable(Map exclusionlist)
Builds an exclusionlist from a Map.
|
void |
setStemExclusionTable(String[] exclusionlist)
Builds an exclusionlist from an array of Strings.
|
org.apache.lucene.analysis.TokenStream |
tokenStream(String fieldName,
Reader reader) |
public static final String[] FRENCH_STOP_WORDS
public LuteceFrenchAnalyzer()
LuteceFrenchAnalyzer(Version)
instead.FRENCH_STOP_WORDS
).public LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion)
FRENCH_STOP_WORDS
).matchVersion
- the versionpublic LuteceFrenchAnalyzer(String[] stopwords)
LuteceFrenchAnalyzer(Version,
String[])
instead.stopwords
- the stop wordspublic LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion, String[] stopwords)
matchVersion
- the versionstopwords
- the stop wordspublic LuteceFrenchAnalyzer(File stopwords) throws IOException
LuteceFrenchAnalyzer(Version, File)
insteadstopwords
- the stop words fileIOException
- io exceptionpublic LuteceFrenchAnalyzer(org.apache.lucene.util.Version matchVersion, File stopwords) throws IOException
matchVersion
- the versionstopwords
- the stop wordsIOException
- io exceptionpublic void setStemExclusionTable(String[] exclusionlist)
exclusionlist
- the non "stemmable" wordspublic void setStemExclusionTable(Map exclusionlist)
exclusionlist
- the non "stemmable" wordspublic void setStemExclusionTable(File exclusionlist) throws IOException
exclusionlist
- file containing non stemmable wordsIOException
- io exceptionpublic final org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
tokenStream
in class org.apache.lucene.analysis.Analyzer
public org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName, Reader reader) throws IOException
reusableTokenStream
in class org.apache.lucene.analysis.Analyzer
IOException
Copyright © 2016 Mairie de Paris. All Rights Reserved.