C# Класс Lucene.Net.Analysis.Stempel.StempelFilter

Transforms the token stream as per the stemming algorithm.

Note: the input to the stemming filter must already be in lower case, so you will need to use Analysis.Core.LowerCaseFilter or Analysis.Core.LowerCaseTokenizer farther down the Tokenizer chain in order for this to work properly!

Наследование: TokenFilter
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DEFAULT_MIN_LENGTH int

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

Метод Описание
IncrementToken ( ) : bool

Returns the next input Token, after being stemmed

StempelFilter ( TokenStream @in, StempelStemmer stemmer ) : Lucene.Net.Analysis.Tokenattributes

Create filter using the supplied stemming table.

StempelFilter ( TokenStream @in, StempelStemmer stemmer, int minLength ) : Lucene.Net.Analysis.Tokenattributes

Create filter using the supplied stemming table.

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

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

Returns the next input Token, after being stemmed
public IncrementToken ( ) : bool
Результат bool

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

Create filter using the supplied stemming table.
public StempelFilter ( TokenStream @in, StempelStemmer stemmer ) : Lucene.Net.Analysis.Tokenattributes
@in TokenStream
stemmer StempelStemmer stemmer
Результат Lucene.Net.Analysis.Tokenattributes

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

Create filter using the supplied stemming table.
public StempelFilter ( TokenStream @in, StempelStemmer stemmer, int minLength ) : Lucene.Net.Analysis.Tokenattributes
@in TokenStream
stemmer StempelStemmer stemmer
minLength int For performance reasons words shorter than minLength /// characters are not processed, but simply returned.
Результат Lucene.Net.Analysis.Tokenattributes

Описание свойств

DEFAULT_MIN_LENGTH публичное статическое свойство

Minimum length of input words to be processed. Shorter words are returned unchanged.
public static int DEFAULT_MIN_LENGTH
Результат int