Class TextDataset.Sample

  • Enclosing class:
    TextDataset

    public static final class TextDataset.Sample
    extends java.lang.Object
    A class stores TextDataset sample information.
    • Constructor Summary

      Constructors 
      Constructor Description
      Sample​(int index, int sentenceLength)
      Constructs a new Sample instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getIndex()
      Returns the sample index.
      int getSentenceLength()
      Returns the sentence length.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sample

        public Sample​(int index,
                      int sentenceLength)
        Constructs a new Sample instance.
        Parameters:
        index - the index
        sentenceLength - the sentence length
    • Method Detail

      • getSentenceLength

        public int getSentenceLength()
        Returns the sentence length.
        Returns:
        the sentence length
      • getIndex

        public long getIndex()
        Returns the sample index.
        Returns:
        the sample index