Method GetSnowballWordSet
GetSnowballWordSet(TextReader, CharArraySet)
Reads stopwords from a stopword list in Snowball format.
The snowball format is the following:
- Lines may contain multiple words separated by whitespace.
- The comment character is the vertical line (|).
- Lines may contain trailing comments.
Declaration
public static CharArraySet GetSnowballWordSet(TextReader reader, CharArraySet result)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader | System.IO.TextReader containing a Snowball stopword list |
CharArraySet | result | the CharArraySet to fill with the readers words |
Returns
Type | Description |
---|---|
CharArraySet | the given CharArraySet with the reader's words |
GetSnowballWordSet(TextReader, LuceneVersion)
Reads stopwords from a stopword list in Snowball format.
The snowball format is the following:
- Lines may contain multiple words separated by whitespace.
- The comment character is the vertical line (|).
- Lines may contain trailing comments.
Declaration
public static CharArraySet GetSnowballWordSet(TextReader reader, LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader | System.IO.TextReader containing a Snowball stopword list |
LuceneVersion | matchVersion | the Lucene LuceneVersion |
Returns
Type | Description |
---|---|
CharArraySet | A CharArraySet with the reader's words |