public class MutipleEpochsSentenceIterator extends java.lang.Object implements SentenceIterator
Constructor and Description |
---|
MutipleEpochsSentenceIterator(SentenceIterator iterator,
int numEpochs) |
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 MutipleEpochsSentenceIterator(@NonNull SentenceIterator iterator, int numEpochs)
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