public final class BrazilianAnalyzer extends Analyzer
Modifier and Type | Field and Description |
---|---|
static String[] |
BRAZILIAN_STOP_WORDS
List of typical Brazilian stopwords.
|
Constructor and Description |
---|
BrazilianAnalyzer()
Builds an analyzer with the default stop words (
BRAZILIAN_STOP_WORDS ). |
BrazilianAnalyzer(File stopwords)
Builds an analyzer with the given stop words.
|
BrazilianAnalyzer(Map stopwords)
Builds an analyzer with the given stop words.
|
BrazilianAnalyzer(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, setPreviousTokenStream
public static final String[] BRAZILIAN_STOP_WORDS
public BrazilianAnalyzer()
BRAZILIAN_STOP_WORDS
).public BrazilianAnalyzer(String[] stopwords)
public BrazilianAnalyzer(Map stopwords)
public BrazilianAnalyzer(File stopwords) throws IOException
IOException
public void setStemExclusionTable(String[] exclusionlist)
public void setStemExclusionTable(Map exclusionlist)
public void setStemExclusionTable(File exclusionlist) throws IOException
IOException
public final TokenStream tokenStream(String fieldName, Reader reader)
tokenStream
in class Analyzer
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.