C# 클래스 ABB.Swum.FileStemmer

Determines the stem for a given word by reading from a file containing precomputed word/stem pairs
상속: Stemmer
파일 보기 프로젝트 열기: abb-iss/Swum.NET 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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