lucene::analysis::standard::StandardTokenizer Class Reference
A grammar-based tokenizer constructed with JavaCC.
More...
#include <StandardTokenizer.h>
List of all members.
Detailed Description
A grammar-based tokenizer constructed with JavaCC.
This should be a good tokenizer for most European-language documents:
-
Splits words at punctuation characters, removing punctuation. However, a dot that's not followed by whitespace is considered part of a token.
-
Splits words at hyphens, unless there's a number in the token, in which case the whole token is interpreted as a product number and is not split.
-
Recognizes email addresses and internet hostnames as one token.
Many applications have specific tokenizer needs. If this tokenizer does not suit your application, please consider copying this source code directory to your project and maintaining your own grammar-based tokenizer.
Constructor & Destructor Documentation
| lucene::analysis::standard::StandardTokenizer::~StandardTokenizer |
( |
|
) |
|
Member Function Documentation
| bool lucene::analysis::standard::StandardTokenizer::next |
( |
Token * |
token |
) |
[virtual] |
Returns the next token in the stream, or false at end-of-stream.
The returned token's type is set to an element of StandardTokenizerConstants::tokenImage.
Implements lucene::analysis::TokenStream.
| bool lucene::analysis::standard::StandardTokenizer::ReadAlphaNum |
( |
const TCHAR |
prev, |
|
|
Token * |
t | |
|
) |
| | |
| bool lucene::analysis::standard::StandardTokenizer::ReadCJK |
( |
const TCHAR |
prev, |
|
|
Token * |
t | |
|
) |
| | |
| bool lucene::analysis::standard::StandardTokenizer::ReadNumber |
( |
const TCHAR * |
previousNumber, |
|
|
const TCHAR |
prev, |
|
|
Token * |
t | |
|
) |
| | |
Member Data Documentation
The documentation for this class was generated from the following file: