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.
파일 보기 프로젝트 열기: sisve/Lucene.Net.Analysis.Hunspell 1 사용 예제들

공개 메소드들

메소드 설명
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