public class CollectionSentenceIterator extends BaseSentenceIterator
preProcessor| Constructor and Description |
|---|
CollectionSentenceIterator(Collection<String> coll) |
CollectionSentenceIterator(SentencePreProcessor preProcessor,
Collection<String> coll) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Same idea as
Iterator |
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, setPreProcessorpublic CollectionSentenceIterator(SentencePreProcessor preProcessor, Collection<String> coll)
public CollectionSentenceIterator(Collection<String> coll)
public String nextSentence()
SentenceIteratorpublic boolean hasNext()
SentenceIteratorIteratorpublic void reset()
SentenceIteratorCopyright © 2014. All rights reserved.