public class AmazonReview extends CsvDataset
AmazonReview dataset contains a Application.NLP.SENTIMENT_ANALYSIS set
of reviews and their sentiment ratings.| Modifier and Type | Class and Description |
|---|---|
static class |
AmazonReview.Builder
A builder to construct a
AmazonReview. |
CsvDataset.CsvBuilder<T extends CsvDataset.CsvBuilder<T>>, CsvDataset.Feature, CsvDataset.FeaturizercsvFormat, csvRecords, csvUrl, features, labels| Modifier | Constructor and Description |
|---|---|
protected |
AmazonReview(AmazonReview.Builder builder)
Creates a new instance of
AmazonReview with the given necessary configurations. |
| Modifier and Type | Method and Description |
|---|---|
static AmazonReview.Builder |
builder()
Creates a new builder to build a
AmazonReview. |
void |
prepare(ai.djl.util.Progress progress) |
availableSize, get, getColumnNames, toNDListgetData, getData, getData, getData, randomSplit, size, subDataset, toArrayprotected AmazonReview(AmazonReview.Builder builder)
AmazonReview with the given necessary configurations.builder - a builder with the necessary configurationspublic void prepare(ai.djl.util.Progress progress)
throws java.io.IOException
prepare in interface ai.djl.training.dataset.Datasetprepare in class CsvDatasetjava.io.IOExceptionpublic static AmazonReview.Builder builder()
AmazonReview.