public interface LabeledSentenceProvider
CnnSentenceDataSetIterator
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
allLabels()
Return the list of labels - this also defines the class/integer label assignment order
|
boolean |
hasNext()
Are there more sentences/documents available?
|
Pair<java.lang.String,java.lang.String> |
nextSentence() |
int |
numLabelClasses()
Equivalent to allLabels().size()
|
void |
reset()
Reset the iterator - including shuffling the order, if necessary/appropriate
|
int |
totalNumSentences()
Return the total number of sentences, or -1 if not available
|
boolean hasNext()
Pair<java.lang.String,java.lang.String> nextSentence()
void reset()
int totalNumSentences()
java.util.List<java.lang.String> allLabels()
int numLabelClasses()