Interface LabeledPairSentenceProvider

    • 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()