HMMChineseTokenizer instead.@Deprecated public final class WordTokenFilter extends TokenFilter
TokenFilter that breaks sentences into words.AttributeSource.StateinputDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
WordTokenFilter(TokenStream in)
Deprecated.
Construct a new WordTokenizer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken()
Deprecated.
|
void |
reset()
Deprecated.
|
close, endaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic WordTokenFilter(TokenStream in)
in - TokenStream of sentencespublic boolean incrementToken()
throws IOException
incrementToken in class TokenStreamIOExceptionpublic void reset()
throws IOException
reset in class TokenFilterIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.