Interface LabeledSentenceProvider

    • Method Detail

      • hasNext

        boolean hasNext()
        Are there more sentences/documents available?
      • nextSentence

        org.nd4j.common.primitives.Pair<String,​String> nextSentence()
        Returns:
        Pair: sentence/document text 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()