Constructor NGramTokenizer
NGramTokenizer(LuceneVersion, TextReader, Int32, Int32)
Creates NGramTokenizer with given min and max n-grams.
Declaration
public NGramTokenizer(LuceneVersion version, TextReader input, int minGram, int maxGram)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | the lucene compatibility version |
System.IO.TextReader | input | System.IO.TextReader holding the input to be tokenized |
System.Int32 | minGram | the smallest n-gram to generate |
System.Int32 | maxGram | the largest n-gram to generate |
NGramTokenizer(LuceneVersion, AttributeSource.AttributeFactory, TextReader, Int32, Int32)
Creates NGramTokenizer with given min and max n-grams.
Declaration
public NGramTokenizer(LuceneVersion version, AttributeSource.AttributeFactory factory, TextReader input, int minGram, int maxGram)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | the lucene compatibility version |
AttributeSource.AttributeFactory | factory | |
System.IO.TextReader | input | System.IO.TextReader holding the input to be tokenized |
System.Int32 | minGram | the smallest n-gram to generate |
System.Int32 | maxGram | the largest n-gram to generate |
NGramTokenizer(LuceneVersion, TextReader)
Creates NGramTokenizer with default min and max n-grams.
Declaration
public NGramTokenizer(LuceneVersion version, TextReader input)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | the lucene compatibility version |
System.IO.TextReader | input | System.IO.TextReader holding the input to be tokenized |