Lucene.Net
3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
|
HunspellStemmer uses the affix rules declared in the HunspellDictionary to generate one or more stems for a word. It conforms to the algorithm in the original hunspell algorithm, including recursive suffix stripping. More...
Public Member Functions | |
HunspellStemmer (HunspellDictionary dictionary) | |
Constructs a new HunspellStemmer which will use the provided HunspellDictionary to create its stems. | |
IEnumerable< HunspellStem > | Stem (String word) |
Find the stem(s) of the provided word. | |
IEnumerable< HunspellStem > | UniqueStems (String word) |
Find the unique stem(s) of the provided word. | |
IEnumerable< HunspellStem > | ApplyAffix (String strippedWord, HunspellAffix affix, Int32 recursionDepth) |
Applies the affix rule to the given word, producing a list of stems if any are found. | |
HunspellStemmer uses the affix rules declared in the HunspellDictionary to generate one or more stems for a word. It conforms to the algorithm in the original hunspell algorithm, including recursive suffix stripping.
<author>Chris Male</author>
Definition at line 30 of file HunspellStemmer.cs.
Lucene.Net.Analysis.Hunspell.HunspellStemmer.HunspellStemmer | ( | HunspellDictionary | dictionary | ) |
Constructs a new HunspellStemmer which will use the provided HunspellDictionary to create its stems.
dictionary | HunspellDictionary that will be used to create the stems. |
Definition at line 39 of file HunspellStemmer.cs.
IEnumerable<HunspellStem> Lucene.Net.Analysis.Hunspell.HunspellStemmer.ApplyAffix | ( | String | strippedWord, |
HunspellAffix | affix, | ||
Int32 | recursionDepth | ||
) |
Applies the affix rule to the given word, producing a list of stems if any are found.
strippedWord | Word the affix has been removed and the strip added. |
affix | HunspellAffix representing the affix rule itself. |
recursionDepth | Level of recursion this stemming step is at. |
Definition at line 158 of file HunspellStemmer.cs.
IEnumerable<HunspellStem> Lucene.Net.Analysis.Hunspell.HunspellStemmer.Stem | ( | String | word | ) |
Find the stem(s) of the provided word.
word | Word to find the stems for. |
Definition at line 49 of file HunspellStemmer.cs.
IEnumerable<HunspellStem> Lucene.Net.Analysis.Hunspell.HunspellStemmer.UniqueStems | ( | String | word | ) |
Find the unique stem(s) of the provided word.
word | Word to find the stems for. |
Definition at line 65 of file HunspellStemmer.cs.