Reads lines from a Reader and adds every non-comment line as an entry to a HashSet (omitting
leading and trailing whitespace). Every line of the Reader should contain only
one word. The words need to be in lowercase if you make use of an
Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Namespace: Lucene.Net.AnalysisAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static Hashtable GetWordSet( TextReader reader, string comment ) |
Visual Basic |
---|
Public Shared Function GetWordSet ( _ reader As TextReader, _ comment As String _ ) As Hashtable |
Visual C++ |
---|
public: static Hashtable^ GetWordSet( TextReader^ reader, String^ comment ) |
Parameters
- reader
- Type: System.IO..::..TextReader
Reader containing the wordlist
- comment
- Type: System..::..String
The string representing a comment.