Class Lucene43NGramTokenizer
Old broken version of NGramTokenizer.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Analysis.NGram
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Obsolete]
public sealed class Lucene43NGramTokenizer : Tokenizer, IDisposable
Constructors
| Improve this Doc View SourceLucene43NGramTokenizer(AttributeSource.AttributeFactory, TextReader, Int32, Int32)
Creates Lucene43NGramTokenizer with given min and max n-grams.
Declaration
public Lucene43NGramTokenizer(AttributeSource.AttributeFactory factory, TextReader input, int minGram, int maxGram)
Parameters
Type | Name | Description |
---|---|---|
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 |
Lucene43NGramTokenizer(TextReader)
Creates Lucene43NGramTokenizer with default min and max n-grams.
Declaration
public Lucene43NGramTokenizer(TextReader input)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | input | System.IO.TextReader holding the input to be tokenized |
Lucene43NGramTokenizer(TextReader, Int32, Int32)
Creates Lucene43NGramTokenizer with given min and max n-grams.
Declaration
public Lucene43NGramTokenizer(TextReader input, int minGram, int maxGram)
Parameters
Type | Name | Description |
---|---|---|
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 |
Fields
| Improve this Doc View SourceDEFAULT_MAX_NGRAM_SIZE
Declaration
public const int DEFAULT_MAX_NGRAM_SIZE = 2
Field Value
Type | Description |
---|---|
System.Int32 |
DEFAULT_MIN_NGRAM_SIZE
Declaration
public const int DEFAULT_MIN_NGRAM_SIZE = 1
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEnd()
Declaration
public override void End()
Overrides
| Improve this Doc View SourceIncrementToken()
Returns the next token in the stream, or null at EOS.
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceReset()
Declaration
public override void Reset()
Overrides
Implements
System.IDisposable