public class StanfordMovieReview extends TextDataset
StanfordMovieReview dataset contains a Application.NLP.SENTIMENT_ANALYSIS set of movie reviews and their sentiment ratings.
The data is sourced from reviews located on IMDB (see here for details).
| Modifier and Type | Class and Description |
|---|---|
static class |
StanfordMovieReview.Builder
A builder for a
StanfordMovieReview. |
TextDataset.Samplemanager, mrl, prepared, samples, sourceTextData, targetTextData, usage| Modifier | Constructor and Description |
|---|---|
protected |
StanfordMovieReview(StanfordMovieReview.Builder builder)
Creates a new instance of
StanfordMovieReview with the given necessary
configurations. |
| Modifier and Type | Method and Description |
|---|---|
protected long |
availableSize() |
static StanfordMovieReview.Builder |
builder()
Creates a new builder to build a
StanfordMovieReview. |
ai.djl.training.dataset.Record |
get(ai.djl.ndarray.NDManager manager,
long index) |
void |
prepare(ai.djl.util.Progress progress) |
getProcessedText, getRawText, getSamples, getTextEmbedding, getVocabulary, preprocessgetData, getData, getData, getData, randomSplit, size, subDataset, toArrayprotected StanfordMovieReview(StanfordMovieReview.Builder builder)
StanfordMovieReview with the given necessary
configurations.builder - a builder with the necessary configurationspublic static StanfordMovieReview.Builder builder()
StanfordMovieReview.public void prepare(ai.djl.util.Progress progress)
throws java.io.IOException,
ai.djl.modality.nlp.embedding.EmbeddingException
java.io.IOExceptionai.djl.modality.nlp.embedding.EmbeddingExceptionpublic ai.djl.training.dataset.Record get(ai.djl.ndarray.NDManager manager,
long index)
get in class ai.djl.training.dataset.RandomAccessDatasetprotected long availableSize()
availableSize in class ai.djl.training.dataset.RandomAccessDataset