Class 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.
Inherited Members
Namespace: Lucene.Net.Analysis.Stempel
Assembly: Lucene.Net.Analysis.Stempel.dll
Syntax
public class StempelStemmer
Constructors
StempelStemmer(Trie)
Create a Stemmer using pre-loaded stemmer table
Declaration
public StempelStemmer(Trie stemmer)
Parameters
Type | Name | Description |
---|---|---|
Trie | stemmer | pre-loaded stemmer table |
StempelStemmer(Stream)
Create a Stemmer using selected stemmer table
Declaration
public StempelStemmer(Stream stemmerTable)
Parameters
Type | Name | Description |
---|---|---|
Stream | stemmerTable | stemmer table. |
Methods
Load(Stream)
Load a stemmer table from an inputstream.
Declaration
public static Trie Load(Stream stemmerTable)
Parameters
Type | Name | Description |
---|---|---|
Stream | stemmerTable |
Returns
Type | Description |
---|---|
Trie |
Stem(string)
Stem a word.
Declaration
public StringBuilder Stem(string word)
Parameters
Type | Name | Description |
---|---|---|
string | word | input word to be stemmed. |
Returns
Type | Description |
---|---|
StringBuilder | stemmed word, or null if the stem could not be generated. |