public class StreamLineIterator extends java.lang.Object implements SentenceIterator
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamLineIterator.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| 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()
SentenceIteratornextSentence in interface SentenceIteratorpublic boolean hasNext()
SentenceIteratorIteratorhasNext in interface SentenceIteratorpublic void reset()
SentenceIteratorreset in interface SentenceIteratorpublic void finish()
SentenceIteratorfinish in interface SentenceIteratorpublic SentencePreProcessor getPreProcessor()
getPreProcessor in interface SentenceIteratorpublic void setPreProcessor(SentencePreProcessor preProcessor)
setPreProcessor in interface SentenceIterator