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.
Inheritance
System.Object
StempelStemmer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Analysis.Stempel
Assembly: Lucene.Net.Analysis.Stempel.dll
Syntax
public class StempelStemmer
Constructors
| Improve this Doc View SourceStempelStemmer(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 |
---|---|---|
System.IO.Stream | stemmerTable | stemmer table. |
Methods
| Improve this Doc View SourceLoad(Stream)
Load a stemmer table from an inputstream.
Declaration
public static Trie Load(Stream stemmerTable)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stemmerTable |
Returns
Type | Description |
---|---|
Trie |
Stem(String)
Stem a word.
Declaration
public StringBuilder Stem(string word)
Parameters
Type | Name | Description |
---|---|---|
System.String | word | input word to be stemmed. |
Returns
Type | Description |
---|---|
System.Text.StringBuilder | stemmed word, or null if the stem could not be generated. |