Method | Description | |
---|---|---|
GetStemDict ( System wordstemfile ) : string>.Dictionary |
Reads a stem dictionary. Each line contains:
|
|
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).
|
public static GetStemDict ( System wordstemfile ) : string>.Dictionary |
||
wordstemfile | System | |
return | string>.Dictionary |
public static GetWordSet ( System wordfile ) : ISet |
||
wordfile | System | File containing the wordlist |
return | ISet |
public static GetWordSet ( System wordfile, System comment ) : ISet |
||
wordfile | System | File containing the wordlist |
comment | System | The comment string to ignore |
return | ISet |