Class FileLabelAwareIterator
- java.lang.Object
-
- org.deeplearning4j.text.documentiterator.FileLabelAwareIterator
-
- All Implemented Interfaces:
Iterator<LabelledDocument>,LabelAwareIterator
public class FileLabelAwareIterator extends Object implements LabelAwareIterator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileLabelAwareIterator.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<File>filesprotected LabelsSourcelabelsSourceprotected AtomicIntegerposition
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileLabelAwareIterator()protectedFileLabelAwareIterator(@NonNull List<File> files, @NonNull LabelsSource source)
-
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
-
-
-
-
Field Detail
-
position
protected AtomicInteger position
-
labelsSource
protected LabelsSource labelsSource
-
-
Constructor Detail
-
FileLabelAwareIterator
protected FileLabelAwareIterator()
-
FileLabelAwareIterator
protected FileLabelAwareIterator(@NonNull @NonNull List<File> files, @NonNull @NonNull LabelsSource source)
-
-
Method Detail
-
hasNextDocument
public boolean hasNextDocument()
- Specified by:
hasNextDocumentin interfaceLabelAwareIterator
-
nextDocument
public LabelledDocument nextDocument()
- Specified by:
nextDocumentin 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>
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceLabelAwareIterator
-
reset
public void reset()
- Specified by:
resetin interfaceLabelAwareIterator
-
getLabelsSource
public LabelsSource getLabelsSource()
- Specified by:
getLabelsSourcein interfaceLabelAwareIterator
-
-