public final class ThaiAnalyzer extends StopwordAnalyzerBase
Analyzer
for Thai language. It uses BreakIterator
to break words.
You must specify the required Version
compatibility when creating ThaiAnalyzer:
Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_STOPWORD_FILE
File containing default Thai stopwords.
|
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
Constructor and Description |
---|
ThaiAnalyzer(Version matchVersion)
Builds an analyzer with the default stop words.
|
ThaiAnalyzer(Version matchVersion,
CharArraySet stopwords)
Builds an analyzer with the given stop words.
|
Modifier and Type | Method and Description |
---|---|
static CharArraySet |
getDefaultStopSet()
Returns an unmodifiable instance of the default stop words set.
|
getStopwordSet
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, tokenStream, tokenStream
public static final String DEFAULT_STOPWORD_FILE
public ThaiAnalyzer(Version matchVersion)
matchVersion
- lucene compatibility versionpublic ThaiAnalyzer(Version matchVersion, CharArraySet stopwords)
matchVersion
- lucene compatibility versionstopwords
- a stopword setpublic static CharArraySet getDefaultStopSet()
Copyright © 2010 - 2020 Adobe. All Rights Reserved