Package ai.djl.basicdataset.nlp
Class CookingStackExchange.Builder
java.lang.Object
ai.djl.basicdataset.nlp.CookingStackExchange.Builder
- Enclosing class:
- CookingStackExchange
A builder to construct a
CookingStackExchange
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newCookingStackExchange
.optArtifactId
(String artifactId) Sets the optional artifactId.optGroupId
(String groupId) Sets optional groupId.optRepository
(ai.djl.repository.Repository repository) Sets the optional repository for the dataset.optUsage
(ai.djl.training.dataset.Dataset.Usage usage) Sets the optional usage for the dataset.
-
Method Details
-
optRepository
Sets the optional repository for the dataset.- Parameters:
repository
- the new repository- Returns:
- this builder
-
optGroupId
Sets optional groupId.- Parameters:
groupId
- the groupId}- Returns:
- this builder
-
optArtifactId
Sets the optional artifactId.- Parameters:
artifactId
- the artifactId- Returns:
- this builder
-
optUsage
Sets the optional usage for the dataset.- Parameters:
usage
- the usage- Returns:
- this builder
-
build
Builds a newCookingStackExchange
.- Returns:
- the new
CookingStackExchange
-