org.apache.lucene.analysis.cn.smart
public final class WordTokenFilter extends TokenFilter
TokenFilter that breaks sentences into words.AttributeSource.AttributeFactory, AttributeSource.Stateinput| Constructor and Description |
|---|
WordTokenFilter(TokenStream in)
Construct a new WordTokenizer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken() |
void |
reset() |
close, endaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, 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-2014 Apache Software Foundation. All Rights Reserved.