public final class GosenTokenizer
extends org.apache.lucene.analysis.Tokenizer
sets the surface form as the term text, but also sets these attributes:
| Constructor and Description |
|---|
GosenTokenizer() |
GosenTokenizer(org.apache.lucene.util.AttributeFactory factory,
StreamFilter filter,
String dictionaryDir)
Create A new GosenTokenizer
|
GosenTokenizer(StreamFilter filter) |
GosenTokenizer(StreamFilter filter,
String dictionaryDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
end() |
boolean |
incrementToken() |
void |
reset() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic GosenTokenizer()
public GosenTokenizer(StreamFilter filter)
public GosenTokenizer(StreamFilter filter, String dictionaryDir)
public GosenTokenizer(org.apache.lucene.util.AttributeFactory factory,
StreamFilter filter,
String dictionaryDir)
factory - the AttributeFactory to usefilter - stream filterdictionaryDir - lucene-gosen dictionary directorypublic boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.analysis.TokenizerIOExceptionpublic void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenizerIOExceptionpublic void end()
throws IOException
end in class org.apache.lucene.analysis.TokenStreamIOException