C# 클래스 NClassifier.PorterStemmer

Stemmer, implementing the Porter Stemming algorithm
파일 보기 프로젝트 열기: colin-dumitru/Proiect-AI-2012---GUI

공개 메소드들

메소드 설명
Add ( char ch ) : void

Add a character to the word being stemmed. When you are finished adding characters, you can call stem() to stem the word.

PorterStemmer ( ) : System
ToString ( ) : string

After a word has been stemmed, it can be retrieved by ToString(), or a reference to the internal buffer can be retrieved by the ResultBuffer and ResultLength properties (which is generally more efficient).

stem ( ) : void

비공개 메소드들

메소드 설명
Cons ( int i ) : bool
Cvc ( int i ) : bool
DoubleC ( int j ) : bool
End ( string s ) : bool
M ( ) : int

Measures the number of consonant sequences between 0 and j. If c is a consonant sequence and v a vowel sequence, and <..> indicates arbitrary presence, gives 0 vc gives 1 vCvc gives 2 vCvcvc gives 3 ....

Step1 ( ) : void
Step2 ( ) : void
Step3 ( ) : void
Step4 ( ) : void
Step5 ( ) : void
Step6 ( ) : void
VowelInStem ( ) : bool
r ( string s ) : void
setto ( string s ) : void

메소드 상세

Add() 공개 메소드

Add a character to the word being stemmed. When you are finished adding characters, you can call stem() to stem the word.
public Add ( char ch ) : void
ch char
리턴 void

PorterStemmer() 공개 메소드

public PorterStemmer ( ) : System
리턴 System

ToString() 공개 메소드

After a word has been stemmed, it can be retrieved by ToString(), or a reference to the internal buffer can be retrieved by the ResultBuffer and ResultLength properties (which is generally more efficient).
public ToString ( ) : string
리턴 string

stem() 공개 메소드

public stem ( ) : void
리턴 void