public class CollectionSentenceIterator extends BaseSentenceIterator
preProcessor
Constructor and Description |
---|
CollectionSentenceIterator(java.util.Collection<java.lang.String> coll) |
CollectionSentenceIterator(SentencePreProcessor preProcessor,
java.util.Collection<java.lang.String> coll) |
Modifier and Type | Method and Description |
---|---|
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
|
finish, getPreProcessor, setPreProcessor
public CollectionSentenceIterator(SentencePreProcessor preProcessor, java.util.Collection<java.lang.String> coll)
public CollectionSentenceIterator(java.util.Collection<java.lang.String> coll)
public java.lang.String nextSentence()
SentenceIterator
public boolean hasNext()
SentenceIterator
Iterator
public void reset()
SentenceIterator