|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.nl.DutchAnalyzer
public class DutchAnalyzer
Analyzer for Dutch language. Supports an external list of stopwords (words that will not be indexed at all), an external list of exclusions (word that will not be stemmed, but indexed) and an external list of word-stem pairs that overrule the algorithm (dictionary stemming). A default set of stopwords is used unless an alternative list is specified, the exclusion list is empty by default.
Field Summary | |
---|---|
static java.lang.String[] |
DUTCH_STOP_WORDS
List of typical Dutch stopwords. |
Constructor Summary | |
---|---|
DutchAnalyzer()
Builds an analyzer with the default stop words ( DUTCH_STOP_WORDS ). |
|
DutchAnalyzer(java.io.File stopwords)
Builds an analyzer with the given stop words. |
|
DutchAnalyzer(java.util.HashSet stopwords)
Builds an analyzer with the given stop words. |
|
DutchAnalyzer(java.lang.String[] stopwords)
Builds an analyzer with the given stop words. |
Method Summary | |
---|---|
void |
setStemDictionary(java.io.File stemdict)
Reads a stemdictionary file , that overrules the stemming algorithm This is a textfile that contains per line word\tstem i.e: tabseperated |
void |
setStemExclusionTable(java.io.File exclusionlist)
Builds an exclusionlist from the words contained in the given file. |
void |
setStemExclusionTable(java.util.HashSet exclusionlist)
Builds an exclusionlist from a Hashtable. |
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 TextReader. |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
---|
getPositionIncrementGap, tokenStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] DUTCH_STOP_WORDS
Constructor Detail |
---|
public DutchAnalyzer()
DUTCH_STOP_WORDS
).
public DutchAnalyzer(java.lang.String[] stopwords)
stopwords
- public DutchAnalyzer(java.util.HashSet stopwords)
stopwords
- public DutchAnalyzer(java.io.File stopwords)
stopwords
- Method Detail |
---|
public void setStemExclusionTable(java.lang.String[] exclusionlist)
exclusionlist
- public void setStemExclusionTable(java.util.HashSet exclusionlist)
public void setStemExclusionTable(java.io.File exclusionlist)
public void setStemDictionary(java.io.File stemdict)
public TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
tokenStream
in class Analyzer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |