Class SentenceIteratorConverter
- java.lang.Object
-
- org.deeplearning4j.text.sentenceiterator.interoperability.SentenceIteratorConverter
-
- All Implemented Interfaces:
Iterator<LabelledDocument>,LabelAwareIterator
public class SentenceIteratorConverter extends Object implements LabelAwareIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description SentenceIteratorConverter(@NonNull SentenceIterator iterator)SentenceIteratorConverter(@NonNull SentenceIterator iterator, @NonNull LabelsSource generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelsSourcegetLabelsSource()booleanhasNext()booleanhasNextDocument()LabelledDocumentnext()LabelledDocumentnextDocument()voidremove()voidreset()voidshutdown()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
SentenceIteratorConverter
public SentenceIteratorConverter(@NonNull @NonNull SentenceIterator iterator)
-
SentenceIteratorConverter
public SentenceIteratorConverter(@NonNull @NonNull SentenceIterator iterator, @NonNull @NonNull LabelsSource generator)
-
-
Method Detail
-
hasNextDocument
public boolean hasNextDocument()
- Specified by:
hasNextDocumentin interfaceLabelAwareIterator
-
nextDocument
public LabelledDocument nextDocument()
- Specified by:
nextDocumentin interfaceLabelAwareIterator
-
reset
public void reset()
- Specified by:
resetin interfaceLabelAwareIterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<LabelledDocument>
-
next
public LabelledDocument next()
- Specified by:
nextin interfaceIterator<LabelledDocument>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<LabelledDocument>
-
getLabelsSource
public LabelsSource getLabelsSource()
- Specified by:
getLabelsSourcein interfaceLabelAwareIterator
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceLabelAwareIterator
-
-