public class SentenceIteratorConverter extends java.lang.Object implements LabelAwareIterator
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
SentenceIteratorConverter(SentenceIterator iterator) |
SentenceIteratorConverter(SentenceIterator iterator,
LabelsSource generator) |
Modifier and Type | Method and Description |
---|---|
LabelsSource |
getLabelsSource() |
boolean |
hasNext() |
boolean |
hasNextDocument() |
LabelledDocument |
next() |
LabelledDocument |
nextDocument() |
void |
remove() |
void |
reset() |
void |
shutdown() |
public SentenceIteratorConverter(@NonNull SentenceIterator iterator)
public SentenceIteratorConverter(@NonNull SentenceIterator iterator, @NonNull LabelsSource generator)
public boolean hasNextDocument()
hasNextDocument
in interface LabelAwareIterator
public LabelledDocument nextDocument()
nextDocument
in interface LabelAwareIterator
public void reset()
reset
in interface LabelAwareIterator
public boolean hasNext()
hasNext
in interface java.util.Iterator<LabelledDocument>
public LabelledDocument next()
next
in interface java.util.Iterator<LabelledDocument>
public void remove()
remove
in interface java.util.Iterator<LabelledDocument>
public LabelsSource getLabelsSource()
getLabelsSource
in interface LabelAwareIterator
public void shutdown()
shutdown
in interface LabelAwareIterator