Closeable, AutoCloseablepublic class ClassicFilter extends TokenFilter
ClassicTokenizer.AttributeSource.AttributeFactory, AttributeSource.Stateinput| Constructor | Description |
|---|---|
ClassicFilter(TokenStream in) |
Construct filtering in.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
incrementToken() |
Returns the next token in the stream, or null at EOS.
|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitclose, end, resetpublic ClassicFilter(TokenStream in)
public final boolean incrementToken()
throws IOException
Removes 's from the end of words.
Removes dots from acronyms.
incrementToken in class TokenStreamIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.