Closeable, AutoCloseablepublic final class BulgarianAnalyzer extends StopwordAnalyzerBase
Analyzer for Bulgarian.
This analyzer implements light-stemming as specified by: Searching Strategies for the Bulgarian Language http://members.unine.ch/jacques.savoy/Papers/BUIR.pdf
ReusableAnalyzerBase.TokenStreamComponents| Modifier and Type | Field | Description |
|---|---|---|
static String |
DEFAULT_STOPWORD_FILE |
File containing default Bulgarian stopwords.
|
static String |
STOPWORDS_COMMENT |
Deprecated.
use
WordlistLoader.getWordSet(Reader, String, Version) directly |
matchVersion, stopwords| Constructor | Description |
|---|---|
BulgarianAnalyzer(Version matchVersion) |
Builds an analyzer with the default stop words:
DEFAULT_STOPWORD_FILE. |
BulgarianAnalyzer(Version matchVersion,
Set<?> stopwords) |
Builds an analyzer with the given stop words.
|
BulgarianAnalyzer(Version matchVersion,
Set<?> stopwords,
Set<?> stemExclusionSet) |
Builds an analyzer with the given stop words and a stem exclusion set.
|
| Modifier and Type | Method | Description |
|---|---|---|
ReusableAnalyzerBase.TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
Creates a
ReusableAnalyzerBase.TokenStreamComponents
which tokenizes all the text in the provided Reader. |
static Set<?> |
getDefaultStopSet() |
Returns an unmodifiable instance of the default stop-words set.
|
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, setPreviousTokenStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitReader, reusableTokenStream, tokenStreamgetStopwordSet, loadStopwordSet, loadStopwordSet, loadStopwordSetpublic static final String DEFAULT_STOPWORD_FILE
@Deprecated public static final String STOPWORDS_COMMENT
WordlistLoader.getWordSet(Reader, String, Version) directlypublic BulgarianAnalyzer(Version matchVersion)
DEFAULT_STOPWORD_FILE.public BulgarianAnalyzer(Version matchVersion, Set<?> stopwords)
public BulgarianAnalyzer(Version matchVersion, Set<?> stopwords, Set<?> stemExclusionSet)
KeywordMarkerFilter
before BulgarianStemFilter.public static Set<?> getDefaultStopSet()
public ReusableAnalyzerBase.TokenStreamComponents createComponents(String fieldName, Reader reader)
ReusableAnalyzerBase.TokenStreamComponents
which tokenizes all the text in the provided Reader.createComponents in class ReusableAnalyzerBasefieldName - the name of the fields content passed to the
ReusableAnalyzerBase.TokenStreamComponents sink as a readerreader - the reader passed to the Tokenizer constructorReusableAnalyzerBase.TokenStreamComponents
built from an StandardTokenizer filtered with
StandardFilter, LowerCaseFilter, StopFilter
, KeywordMarkerFilter if a stem exclusion set is
provided and BulgarianStemFilter.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.