Package org.deeplearning4j.iterator
Interface LabeledPairSentenceProvider
-
- All Known Implementing Classes:
CollectionLabeledPairSentenceProvider
public interface LabeledPairSentenceProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
allLabels()
Return the list of labels - this also defines the class/integer label assignment orderboolean
hasNext()
Are there more sentences/documents available?org.nd4j.common.primitives.Triple<String,String,String>
nextSentencePair()
int
numLabelClasses()
Equivalent to allLabels().size()void
reset()
Reset the iterator - including shuffling the order, if necessary/appropriateint
totalNumSentences()
Return the total number of sentences, or -1 if not available
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Are there more sentences/documents available?
-
nextSentencePair
org.nd4j.common.primitives.Triple<String,String,String> nextSentencePair()
- Returns:
- Triple: two sentence/document texts and label
-
reset
void reset()
Reset the iterator - including shuffling the order, if necessary/appropriate
-
totalNumSentences
int totalNumSentences()
Return the total number of sentences, or -1 if not available
-
allLabels
List<String> allLabels()
Return the list of labels - this also defines the class/integer label assignment order
-
numLabelClasses
int numLabelClasses()
Equivalent to allLabels().size()
-
-