public class AggregatingSentenceIterator extends java.lang.Object implements SentenceIterator
Modifier and Type | Class and Description |
---|---|
static class |
AggregatingSentenceIterator.Builder |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Allows for any finishing (closing of input streams or the like)
|
SentencePreProcessor |
getPreProcessor() |
boolean |
hasNext()
Same idea as
Iterator |
java.lang.String |
nextSentence()
Gets the next sentence or null
if there's nothing left (Do yourself a favor and
check hasNext() )
|
void |
reset()
Resets the iterator to the beginning
|
void |
setPreProcessor(SentencePreProcessor preProcessor) |
public java.lang.String nextSentence()
SentenceIterator
nextSentence
in interface SentenceIterator
public boolean hasNext()
SentenceIterator
Iterator
hasNext
in interface SentenceIterator
public void reset()
SentenceIterator
reset
in interface SentenceIterator
public void finish()
SentenceIterator
finish
in interface SentenceIterator
public SentencePreProcessor getPreProcessor()
getPreProcessor
in interface SentenceIterator
public void setPreProcessor(SentencePreProcessor preProcessor)
setPreProcessor
in interface SentenceIterator