C# Класс Lucene.Net.Analysis.Hunspell.Stemmer

Stemmer uses the affix rules declared in the Dictionary to generate one or more stems for a word. It conforms to the algorithm in the original hunspell algorithm, including recursive suffix stripping.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Stem ( char word, int length ) : IList

Find the stem(s) of the provided word

Stem ( string word ) : IList

Find the stem(s) of the provided word.

Stemmer ( Dictionary dictionary ) : Lucene.Net.Analysis.Util

Constructs a new Stemmer which will use the provided Dictionary to create its stems.

UniqueStems ( char word, int length ) : IList

Find the unique stem(s) of the provided word

Приватные методы

Метод Описание
ApplyAffix ( char strippedWord, int length, int affix, int prefixFlag, int recursionDepth, bool prefix, bool circumfix ) : IList

Applies the affix rule to the given word, producing a list of stems if any are found

CheckCondition ( int condition, char c1, int c1off, int c1len, char c2, int c2off, int c2len ) : bool

checks condition of the concatenation of two strings

HasCrossCheckedFlag ( char flag, char flags, bool matchEmpty ) : bool

Checks if the given flag cross checks with the given array of flags

NewStem ( char buffer, int length ) : CharsRef
Stem ( char word, int length, int previous, int prevFlag, int prefixFlag, int recursionDepth, bool doPrefix, bool doSuffix, bool previousWasPrefix, bool circumfix ) : IList

Generates a list of stems for the provided word

Описание методов

Stem() публичный Метод

Find the stem(s) of the provided word
public Stem ( char word, int length ) : IList
word char Word to find the stems for
length int
Результат IList

Stem() публичный Метод

Find the stem(s) of the provided word.
public Stem ( string word ) : IList
word string Word to find the stems for
Результат IList

Stemmer() публичный Метод

Constructs a new Stemmer which will use the provided Dictionary to create its stems.
public Stemmer ( Dictionary dictionary ) : Lucene.Net.Analysis.Util
dictionary Dictionary Dictionary that will be used to create the stems
Результат Lucene.Net.Analysis.Util

UniqueStems() публичный Метод

Find the unique stem(s) of the provided word
public UniqueStems ( char word, int length ) : IList
word char Word to find the stems for
length int
Результат IList