Package ai.djl.basicdataset.nlp
Class CookingStackExchange.Builder
- java.lang.Object
-
- ai.djl.basicdataset.nlp.CookingStackExchange.Builder
-
- Enclosing class:
- CookingStackExchange
public static final class CookingStackExchange.Builder extends java.lang.ObjectA builder to construct aCookingStackExchange.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CookingStackExchangebuild()Builds a newCookingStackExchange.CookingStackExchange.BuilderoptArtifactId(java.lang.String artifactId)Sets the optional artifactId.CookingStackExchange.BuilderoptGroupId(java.lang.String groupId)Sets optional groupId.CookingStackExchange.BuilderoptRepository(ai.djl.repository.Repository repository)Sets the optional repository for the dataset.CookingStackExchange.BuilderoptUsage(ai.djl.training.dataset.Dataset.Usage usage)Sets the optional usage for the dataset.
-
-
-
Method Detail
-
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(java.lang.String groupId)
Sets optional groupId.- Parameters:
groupId- the groupId}- Returns:
- this builder
-
optArtifactId
public CookingStackExchange.Builder optArtifactId(java.lang.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 newCookingStackExchange.- Returns:
- the new
CookingStackExchange
-
-