C# Класс ABB.Swum.FileStemmer

Determines the stem for a given word by reading from a file containing precomputed word/stem pairs
Наследование: Stemmer
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Stems string>.Dictionary

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

Метод Описание
FileStemmer ( string stemFilePath ) : System

Creates a new FileStemmer using the file specified.

Stem ( string word ) : string

Returns the stem for the given word.

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

FileStemmer() публичный метод

Creates a new FileStemmer using the file specified.
public FileStemmer ( string stemFilePath ) : System
stemFilePath string The path to the file containing the word/stem pairs to use.
Результат System

Stem() публичный метод

Returns the stem for the given word.
public Stem ( string word ) : string
word string The word to stem.
Результат string

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

Stems защищенное свойство

A Dictionary mapping words to their stems. This is populated from the file supplied to the constructor.
protected Dictionary Stems
Результат string>.Dictionary