public final class ElisionFilter extends TokenFilter
TokenStream. For example, "l'avion" (the plane) will be
tokenized as "avion" (plane).AttributeSource.StateinputDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
ElisionFilter(TokenStream input,
CharArraySet articles)
Constructs an elision filter with a Set of stop words
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken()
Increments the
TokenStream with a CharTermAttribute without elisioned start |
close, end, resetaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic ElisionFilter(TokenStream input, CharArraySet articles)
input - the source TokenStreamarticles - a set of stopword articlespublic final boolean incrementToken()
throws IOException
TokenStream with a CharTermAttribute without elisioned startincrementToken in class TokenStreamIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.