public final class ThaiAnalyzer
extends org.apache.lucene.analysis.StopwordAnalyzerBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_STOPWORD_FILE
File containing default Thai stopwords.
|
Constructor and Description |
---|
ThaiAnalyzer(org.apache.lucene.util.Version matchVersion)
Builds an analyzer with the default stop words.
|
ThaiAnalyzer(org.apache.lucene.util.Version matchVersion,
java.util.Set<?> stopwords)
Builds an analyzer with the given stop words.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents |
createComponents(java.lang.String fieldName,
java.io.Reader reader)
Creates
ReusableAnalyzerBase.TokenStreamComponents
used to tokenize all the text in the provided Reader . |
static java.util.Set<?> |
getDefaultStopSet()
Returns an unmodifiable instance of the default stop words set.
|
getStopwordSet, loadStopwordSet, loadStopwordSet, loadStopwordSet
initReader, reusableTokenStream, tokenStream
public static final java.lang.String DEFAULT_STOPWORD_FILE
public ThaiAnalyzer(org.apache.lucene.util.Version matchVersion)
matchVersion
- lucene compatibility versionpublic ThaiAnalyzer(org.apache.lucene.util.Version matchVersion, java.util.Set<?> stopwords)
matchVersion
- lucene compatibility versionstopwords
- a stopword setpublic static java.util.Set<?> getDefaultStopSet()
protected org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents createComponents(java.lang.String fieldName, java.io.Reader reader)
ReusableAnalyzerBase.TokenStreamComponents
used to tokenize all the text in the provided Reader
.createComponents
in class org.apache.lucene.analysis.ReusableAnalyzerBase
ReusableAnalyzerBase.TokenStreamComponents
built from a StandardTokenizer
filtered with
StandardFilter
, LowerCaseFilter
, ThaiWordFilter
, and
StopFilter
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.