C# Class 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.
Afficher le fichier Open project: sisve/Lucene.Net.Analysis.Hunspell Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

ApplyAffix() public méthode

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.
Résultat IEnumerable

HunspellStemmer() public méthode

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.
Résultat System

Stem() public méthode

Find the stem(s) of the provided word.
public Stem ( String word ) : IEnumerable
word String Word to find the stems for.
Résultat IEnumerable

UniqueStems() public méthode

Find the unique stem(s) of the provided word.
public UniqueStems ( String word ) : IEnumerable
word String Word to find the stems for.
Résultat IEnumerable