Class CookingStackExchange.Builder

java.lang.Object
ai.djl.basicdataset.nlp.CookingStackExchange.Builder
Enclosing class:
CookingStackExchange

public static final class CookingStackExchange.Builder extends Object
A builder to construct a CookingStackExchange.
  • Method Details

    • optRepository

      public CookingStackExchange.Builder optRepository(ai.djl.repository.Repository repository)
      Sets the optional repository for the dataset.
      Parameters:
      repository - the new repository
      Returns:
      this builder
    • optGroupId

      public CookingStackExchange.Builder optGroupId(String groupId)
      Sets optional groupId.
      Parameters:
      groupId - the groupId}
      Returns:
      this builder
    • optArtifactId

      public CookingStackExchange.Builder optArtifactId(String artifactId)
      Sets the optional artifactId.
      Parameters:
      artifactId - the artifactId
      Returns:
      this builder
    • optUsage

      public CookingStackExchange.Builder optUsage(ai.djl.training.dataset.Dataset.Usage usage)
      Sets the optional usage for the dataset.
      Parameters:
      usage - the usage
      Returns:
      this builder
    • build

      public CookingStackExchange build()
      Builds a new CookingStackExchange.
      Returns:
      the new CookingStackExchange