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

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.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ApplyAffix ( String strippedWord, HunspellAffix affix, Int32 recursionDepth ) : IEnumerable

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

HunspellStemmer ( HunspellDictionary dictionary ) : System

Constructs a new HunspellStemmer which will use the provided HunspellDictionary to create its stems.

Stem ( String word ) : IEnumerable

Find the stem(s) of the provided word.

UniqueStems ( String word ) : IEnumerable

Find the unique stem(s) of the provided word.

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

Метод Описание
HasCrossCheckedFlag ( Char flag, Char flags ) : System.Boolean

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

Stem ( String word, Char flags, Int32 recursionDepth ) : IEnumerable

Generates a list of stems for the provided word.

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

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

Applies the affix rule to the given word, producing a list of stems if any are found.
public ApplyAffix ( String strippedWord, HunspellAffix affix, Int32 recursionDepth ) : IEnumerable
strippedWord String Word the affix has been removed and the strip added.
affix HunspellAffix HunspellAffix representing the affix rule itself.
recursionDepth System.Int32 Level of recursion this stemming step is at.
Результат IEnumerable

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

Constructs a new HunspellStemmer which will use the provided HunspellDictionary to create its stems.
public HunspellStemmer ( HunspellDictionary dictionary ) : System
dictionary HunspellDictionary HunspellDictionary that will be used to create the stems.
Результат System

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

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

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

Find the unique stem(s) of the provided word.
public UniqueStems ( String word ) : IEnumerable
word String Word to find the stems for.
Результат IEnumerable