public final class DaitchMokotoffSoundexFilter extends TokenFilter
AttributeSource.State
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.codec.language.DaitchMokotoffSoundex |
encoder
phonetic encoder
|
protected boolean |
inject
true if encoded tokens should be added as synonyms
|
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
DaitchMokotoffSoundexFilter(TokenStream in,
boolean inject)
Creates a DaitchMokotoffSoundexFilter by either adding encoded forms as synonyms (
inject=true ) or replacing them. |
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken() |
void |
reset() |
close, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
protected boolean inject
protected org.apache.commons.codec.language.DaitchMokotoffSoundex encoder
public DaitchMokotoffSoundexFilter(TokenStream in, boolean inject)
inject=true
) or replacing them.public boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
public void reset() throws IOException
reset
in class TokenFilter
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.