C# Class Lucene.Net.Analysis.Stempel.StempelStemmer

Stemmer class is a convenient facade for other stemmer-related classes. The core stemming algorithm and its implementation is taken verbatim from the Egothor project ( www.egothor.org ).

Even though the stemmer tables supplied in the distribution package are built for Polish language, there is nothing language-specific here.

Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Load ( Stream stemmerTable ) : Egothor.Stemmer.Trie

Load a stemmer table from an inputstream.

Stem ( string word ) : StringBuilder

Stem a word.

StempelStemmer ( Stream stemmerTable ) : Egothor.Stemmer

Create a Stemmer using selected stemmer table

StempelStemmer ( Egothor.Stemmer.Trie stemmer ) : Egothor.Stemmer

Create a Stemmer using pre-loaded stemmer table

Method Details

Load() public static method

Load a stemmer table from an inputstream.
public static Load ( Stream stemmerTable ) : Egothor.Stemmer.Trie
stemmerTable System.IO.Stream
return Egothor.Stemmer.Trie

Stem() public method

Stem a word.
public Stem ( string word ) : StringBuilder
word string input word to be stemmed.
return System.Text.StringBuilder

StempelStemmer() public method

Create a Stemmer using selected stemmer table
public StempelStemmer ( Stream stemmerTable ) : Egothor.Stemmer
stemmerTable System.IO.Stream stemmer table.
return Egothor.Stemmer

StempelStemmer() public method

Create a Stemmer using pre-loaded stemmer table
public StempelStemmer ( Egothor.Stemmer.Trie stemmer ) : Egothor.Stemmer
stemmer Egothor.Stemmer.Trie pre-loaded stemmer table
return Egothor.Stemmer