C# Class Lucene.Net.Analysis.Pl.PolishAnalyzer

Analyzer for Polish.
Inheritance: Lucene.Net.Analysis.Util.StopwordAnalyzerBase
Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
DEFAULT_STEMMER_FILE string
DEFAULT_STOPWORD_FILE string

Public Methods

Method Description
CreateComponents ( string fieldName, TextReader reader ) : TokenStreamComponents

Creates a Analyzer.TokenStreamComponents which tokenizes all the text in the provided TextReader.

GetDefaultStopSet ( ) : CharArraySet

Returns an unmodifiable instance of the default stop words set.

GetDefaultTable ( ) : Egothor.Stemmer.Trie

Returns an unmodifiable instance of the default stemmer table.

PolishAnalyzer ( LuceneVersion matchVersion ) : Egothor.Stemmer

Builds an analyzer with the default stop words: DEFAULT_STOPWORD_FILE.

PolishAnalyzer ( LuceneVersion matchVersion, CharArraySet stopwords ) : Egothor.Stemmer

Builds an analyzer with the given stop words.

PolishAnalyzer ( LuceneVersion matchVersion, CharArraySet stopwords, CharArraySet stemExclusionSet ) : Egothor.Stemmer

Builds an analyzer with the given stop words. If a non-empty stem exclusion set is provided this analyzer will add a SetKeywordMarkerFilter before stemming.

Method Details

CreateComponents() public method

Creates a Analyzer.TokenStreamComponents which tokenizes all the text in the provided TextReader.
public CreateComponents ( string fieldName, TextReader reader ) : TokenStreamComponents
fieldName string
reader TextReader
return TokenStreamComponents

GetDefaultStopSet() public static method

Returns an unmodifiable instance of the default stop words set.
public static GetDefaultStopSet ( ) : CharArraySet
return CharArraySet

GetDefaultTable() public static method

Returns an unmodifiable instance of the default stemmer table.
public static GetDefaultTable ( ) : Egothor.Stemmer.Trie
return Egothor.Stemmer.Trie

PolishAnalyzer() public method

Builds an analyzer with the default stop words: DEFAULT_STOPWORD_FILE.
public PolishAnalyzer ( LuceneVersion matchVersion ) : Egothor.Stemmer
matchVersion LuceneVersion lucene compatibility version
return Egothor.Stemmer

PolishAnalyzer() public method

Builds an analyzer with the given stop words.
public PolishAnalyzer ( LuceneVersion matchVersion, CharArraySet stopwords ) : Egothor.Stemmer
matchVersion LuceneVersion lucene compatibility version
stopwords CharArraySet a stopword set
return Egothor.Stemmer

PolishAnalyzer() public method

Builds an analyzer with the given stop words. If a non-empty stem exclusion set is provided this analyzer will add a SetKeywordMarkerFilter before stemming.
public PolishAnalyzer ( LuceneVersion matchVersion, CharArraySet stopwords, CharArraySet stemExclusionSet ) : Egothor.Stemmer
matchVersion LuceneVersion lucene compatibility version
stopwords CharArraySet a stopword set
stemExclusionSet CharArraySet a set of terms not to be stemmed
return Egothor.Stemmer

Property Details

DEFAULT_STEMMER_FILE public_oe static_oe property

File containing default Polish stemmer table.
public static string DEFAULT_STEMMER_FILE
return string

DEFAULT_STOPWORD_FILE public_oe static_oe property

File containing default Polish stopwords.
public static string DEFAULT_STOPWORD_FILE
return string