public final class SentenceTokenizer
extends org.apache.lucene.analysis.Tokenizer
The output tokens can then be broken into words with WordTokenFilter
| Constructor and Description |
|---|
SentenceTokenizer(org.apache.lucene.util.AttributeSource.AttributeFactory factory,
java.io.Reader reader) |
SentenceTokenizer(org.apache.lucene.util.AttributeSource source,
java.io.Reader reader) |
SentenceTokenizer(java.io.Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
boolean |
incrementToken() |
void |
reset() |
void |
reset(java.io.Reader input) |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic SentenceTokenizer(java.io.Reader reader)
public SentenceTokenizer(org.apache.lucene.util.AttributeSource source,
java.io.Reader reader)
public SentenceTokenizer(org.apache.lucene.util.AttributeSource.AttributeFactory factory,
java.io.Reader reader)
public boolean incrementToken()
throws java.io.IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void reset(java.io.Reader input)
throws java.io.IOException
reset in class org.apache.lucene.analysis.Tokenizerjava.io.IOExceptionpublic void end()
throws java.io.IOException
end in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.