C# 클래스 Lucene.Net.Analysis.WordlistLoader

Loads a text file and adds every line as an entry to a Hashtable. Every line should contain only one word. If the file is not found or on any error, an empty table is returned.
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
GetStemDict ( System wordstemfile ) : string>.Dictionary

Reads a stem dictionary. Each line contains: word\tstem (i.e. two tab seperated words)

GetWordSet ( System wordfile ) : ISet

Loads a text file and adds every line as an entry to a HashSet (omitting leading and trailing whitespace). Every line of the file should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).

GetWordSet ( System wordfile, System comment ) : ISet

Loads a text file and adds every non-comment line as an entry to a HashSet (omitting leading and trailing whitespace). Every line of the file should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).

메소드 상세

GetStemDict() 공개 정적인 메소드

Reads a stem dictionary. Each line contains: word\tstem (i.e. two tab seperated words)
public static GetStemDict ( System wordstemfile ) : string>.Dictionary
wordstemfile System
리턴 string>.Dictionary

GetWordSet() 공개 정적인 메소드

Loads a text file and adds every line as an entry to a HashSet (omitting leading and trailing whitespace). Every line of the file should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
public static GetWordSet ( System wordfile ) : ISet
wordfile System File containing the wordlist
리턴 ISet

GetWordSet() 공개 정적인 메소드

Loads a text file and adds every non-comment line as an entry to a HashSet (omitting leading and trailing whitespace). Every line of the file should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
public static GetWordSet ( System wordfile, System comment ) : ISet
wordfile System File containing the wordlist
comment System The comment string to ignore
리턴 ISet