C# Class org.apache.lucene.analysis.ngram.Lucene43NGramTokenizer

Inheritance: Tokenizer
Show file Open project: paulirwin/lucene.net

Public Methods

Method Description
Lucene43NGramTokenizer ( AttributeFactory factory, Reader input, int minGram, int maxGram ) : System

Creates NGramTokenizer with given min and max n-grams.

Lucene43NGramTokenizer ( Reader input ) : System

Creates NGramTokenizer with default min and max n-grams.

Lucene43NGramTokenizer ( Reader input, int minGram, int maxGram ) : System

Creates NGramTokenizer with given min and max n-grams.

end ( ) : void
incrementToken ( ) : bool

Returns the next token in the stream, or null at EOS.

reset ( ) : void

Private Methods

Method Description
init ( int minGram, int maxGram ) : void

Method Details

Lucene43NGramTokenizer() public method

Creates NGramTokenizer with given min and max n-grams.
public Lucene43NGramTokenizer ( AttributeFactory factory, Reader input, int minGram, int maxGram ) : System
factory AttributeFactory to use
input Reader holding the input to be tokenized
minGram int the smallest n-gram to generate
maxGram int the largest n-gram to generate
return System

Lucene43NGramTokenizer() public method

Creates NGramTokenizer with default min and max n-grams.
public Lucene43NGramTokenizer ( Reader input ) : System
input Reader holding the input to be tokenized
return System

Lucene43NGramTokenizer() public method

Creates NGramTokenizer with given min and max n-grams.
public Lucene43NGramTokenizer ( Reader input, int minGram, int maxGram ) : System
input Reader holding the input to be tokenized
minGram int the smallest n-gram to generate
maxGram int the largest n-gram to generate
return System

end() public method

public end ( ) : void
return void

incrementToken() public method

Returns the next token in the stream, or null at EOS.
public incrementToken ( ) : bool
return bool

reset() public method

public reset ( ) : void
return void