public class FileLabeledSentenceProvider
extends java.lang.Object
implements org.deeplearning4j.iterator.LabeledSentenceProvider
Constructor and Description |
---|
FileLabeledSentenceProvider(java.util.List<java.io.File> files,
java.util.List<java.lang.String> labels,
int numClasses) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
allLabels() |
boolean |
hasNext() |
org.nd4j.common.primitives.Pair<java.lang.String,java.lang.String> |
nextSentence() |
int |
numLabelClasses() |
void |
reset() |
int |
totalNumSentences() |
public FileLabeledSentenceProvider(java.util.List<java.io.File> files, java.util.List<java.lang.String> labels, int numClasses)
public boolean hasNext()
hasNext
in interface org.deeplearning4j.iterator.LabeledSentenceProvider
public org.nd4j.common.primitives.Pair<java.lang.String,java.lang.String> nextSentence()
nextSentence
in interface org.deeplearning4j.iterator.LabeledSentenceProvider
public void reset()
reset
in interface org.deeplearning4j.iterator.LabeledSentenceProvider
public int totalNumSentences()
totalNumSentences
in interface org.deeplearning4j.iterator.LabeledSentenceProvider
public java.util.List<java.lang.String> allLabels()
allLabels
in interface org.deeplearning4j.iterator.LabeledSentenceProvider
public int numLabelClasses()
numLabelClasses
in interface org.deeplearning4j.iterator.LabeledSentenceProvider