Package ai.djl.basicdataset.nlp
Class TextDataset.Sample
- java.lang.Object
-
- ai.djl.basicdataset.nlp.TextDataset.Sample
-
- Enclosing class:
- TextDataset
public static final class TextDataset.Sample extends java.lang.Object
A class storesTextDataset
sample information.
-
-
Constructor Summary
Constructors Constructor Description Sample(int index, int sentenceLength)
Constructs a newSample
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.
-