C# Класс NClassifier.PorterStemmer

Stemmer, implementing the Porter Stemming algorithm
Показать файл Открыть проект

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

Метод Описание
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