Class AmazonReview

java.lang.Object
ai.djl.training.dataset.RandomAccessDataset
All Implemented Interfaces:
ai.djl.training.dataset.Dataset

public class AmazonReview extends CsvDataset
The AmazonReview dataset contains a Application.NLP.SENTIMENT_ANALYSIS set of reviews and their sentiment ratings.
  • Constructor Details

    • AmazonReview

      protected AmazonReview(AmazonReview.Builder builder)
      Creates a new instance of AmazonReview with the given necessary configurations.
      Parameters:
      builder - a builder with the necessary configurations
  • Method Details

    • prepare

      public void prepare(ai.djl.util.Progress progress) throws IOException
      Specified by:
      prepare in interface ai.djl.training.dataset.Dataset
      Overrides:
      prepare in class CsvDataset
      Throws:
      IOException
    • builder

      public static AmazonReview.Builder builder()
      Creates a new builder to build a AmazonReview.
      Returns:
      a new builder