public abstract class BaseSentenceIterator extends java.lang.Object implements SentenceIterator
Modifier and Type | Field and Description |
---|---|
protected SentencePreProcessor |
preProcessor |
Constructor and Description |
---|
BaseSentenceIterator() |
BaseSentenceIterator(SentencePreProcessor preProcessor) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Allows for any finishing (closing of input streams or the like)
|
SentencePreProcessor |
getPreProcessor() |
void |
setPreProcessor(SentencePreProcessor preProcessor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasNext, nextSentence, reset
protected SentencePreProcessor preProcessor
public BaseSentenceIterator(SentencePreProcessor preProcessor)
public BaseSentenceIterator()
public SentencePreProcessor getPreProcessor()
getPreProcessor
in interface SentenceIterator
public void setPreProcessor(SentencePreProcessor preProcessor)
setPreProcessor
in interface SentenceIterator
public void finish()
SentenceIterator
finish
in interface SentenceIterator