Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
A LetterTokenizer is a tokenizer that divides text at non-letters. That's to say, it defines tokens as maximal strings of adjacent letters, as defined by java.lang.Character.isLetter() predicate. Note: this does a decent job for most European languages, but does a terrible job for some Asian languages, where words are not separated by spaces. More...
Inherits Lucene.Net.Analysis.CharTokenizer.
Inherited by Lucene.Net.Analysis.AR.ArabicLetterTokenizer, and Lucene.Net.Analysis.LowerCaseTokenizer.
Public Member Functions | |
LetterTokenizer (System.IO.TextReader @in) | |
Construct a new LetterTokenizer. | |
LetterTokenizer (AttributeSource source, System.IO.TextReader @in) | |
Construct a new LetterTokenizer using a given AttributeSource. | |
LetterTokenizer (AttributeFactory factory, System.IO.TextReader @in) | |
Construct a new LetterTokenizer using a given Lucene.Net.Util.AttributeSource.AttributeFactory. | |
Public Member Functions inherited from Lucene.Net.Analysis.CharTokenizer | |
override bool | IncrementToken () |
Consumers (i.e., IndexWriter) use this method to advance the stream to the next token. Implementing classes must implement this method and update the appropriate Util.Attributes with the attributes of the next token. | |
override void | End () |
This method is called by the consumer after the last token has been consumed, after IncrementToken returned false (using the new TokenStream API). Streams implementing the old API should upgrade to use this feature. This method can be used to perform any end-of-stream operations, such as setting the final offset of a stream. The final offset of a stream might differ from the offset of the last token eg in case one or more whitespaces followed after the last token, but a WhitespaceTokenizer was used. | |
override void | Reset (System.IO.TextReader input) |
Expert: Reset the tokenizer to a new reader. Typically, an analyzer (in its reusableTokenStream method) will use this to re-use a previously created tokenizer. | |
Additional Inherited Members | |
Protected Member Functions inherited from Lucene.Net.Analysis.CharTokenizer | |
CharTokenizer (System.IO.TextReader input) | |
CharTokenizer (AttributeSource source, System.IO.TextReader input) | |
CharTokenizer (AttributeFactory factory, System.IO.TextReader input) | |
Properties inherited from Lucene.Net.Util.AttributeSource | |
virtual AttributeFactory | Factory [get] |
Returns the used AttributeFactory. | |
virtual bool | HasAttributes [get] |
Returns true, iff this AttributeSource has any attributes | |
A LetterTokenizer is a tokenizer that divides text at non-letters. That's to say, it defines tokens as maximal strings of adjacent letters, as defined by java.lang.Character.isLetter() predicate. Note: this does a decent job for most European languages, but does a terrible job for some Asian languages, where words are not separated by spaces.
Definition at line 30 of file LetterTokenizer.cs.
Lucene.Net.Analysis.LetterTokenizer.LetterTokenizer | ( | System.IO.TextReader @ | in | ) |
Construct a new LetterTokenizer.
Definition at line 33 of file LetterTokenizer.cs.
Lucene.Net.Analysis.LetterTokenizer.LetterTokenizer | ( | AttributeSource | source, |
System.IO.TextReader @ | in | ||
) |
Construct a new LetterTokenizer using a given AttributeSource.
Definition at line 38 of file LetterTokenizer.cs.
Lucene.Net.Analysis.LetterTokenizer.LetterTokenizer | ( | AttributeFactory | factory, |
System.IO.TextReader @ | in | ||
) |
Construct a new LetterTokenizer using a given Lucene.Net.Util.AttributeSource.AttributeFactory.
Definition at line 44 of file LetterTokenizer.cs.