org.apache.lucene.analysis.nl
public class DutchAnalyzer extends Analyzer
Modifier and Type | Field and Description |
---|---|
static String[] |
DUTCH_STOP_WORDS
List of typical Dutch stopwords.
|
Constructor and Description |
---|
DutchAnalyzer()
Builds an analyzer with the default stop words (
DUTCH_STOP_WORDS )
and a few default entries for the stem exclusion table. |
DutchAnalyzer(File stopwords)
Builds an analyzer with the given stop words.
|
DutchAnalyzer(HashSet stopwords)
Builds an analyzer with the given stop words.
|
DutchAnalyzer(String[] stopwords)
Builds an analyzer with the given stop words.
|
Modifier and Type | Method and Description |
---|---|
void |
setStemDictionary(File stemdictFile)
Reads a stemdictionary file , that overrules the stemming algorithm
This is a textfile that contains per line
word\tstem, i.e: two tab seperated words
|
void |
setStemExclusionTable(File exclusionlist)
Builds an exclusionlist from the words contained in the given file.
|
void |
setStemExclusionTable(HashSet 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 TextReader.
|
getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
public static final String[] DUTCH_STOP_WORDS
public DutchAnalyzer()
DUTCH_STOP_WORDS
)
and a few default entries for the stem exclusion table.public DutchAnalyzer(String[] stopwords)
stopwords
- public DutchAnalyzer(HashSet stopwords)
stopwords
- public DutchAnalyzer(File stopwords)
stopwords
- public void setStemExclusionTable(String[] exclusionlist)
exclusionlist
- public void setStemExclusionTable(HashSet exclusionlist)
public void setStemExclusionTable(File exclusionlist)
public void setStemDictionary(File stemdictFile)
public TokenStream tokenStream(String fieldName, Reader reader)
tokenStream
in class Analyzer
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.