public abstract static class TextDataset.Builder<T extends TextDataset.Builder<T>>
extends ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<T>
TextDataset.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
artifactId |
protected java.lang.String |
groupId |
protected ai.djl.repository.Repository |
repository |
protected ai.djl.training.dataset.Dataset.Usage |
usage |
| Modifier and Type | Method and Description |
|---|---|
T |
optArtifactId(java.lang.String artifactId)
Sets the optional artifactId.
|
T |
optGroupId(java.lang.String groupId)
Sets optional groupId.
|
T |
optManager(ai.djl.ndarray.NDManager manager)
Sets the optional manager for the dataset (default follows engine default).
|
T |
optRepository(ai.djl.repository.Repository repository)
Sets the optional repository.
|
T |
optUsage(ai.djl.training.dataset.Dataset.Usage usage)
Sets the optional usage.
|
T |
setSourceConfiguration(TextData.Configuration sourceConfiguration)
Sets the
TextData.Configuration to use for the source text data. |
T |
setTargetConfiguration(TextData.Configuration targetConfiguration)
Sets the
TextData.Configuration to use for the target text data. |
protected ai.djl.repository.Repository repository
protected java.lang.String groupId
protected java.lang.String artifactId
protected ai.djl.training.dataset.Dataset.Usage usage
public T setSourceConfiguration(TextData.Configuration sourceConfiguration)
TextData.Configuration to use for the source text data.sourceConfiguration - the TextData.Configurationpublic T setTargetConfiguration(TextData.Configuration targetConfiguration)
TextData.Configuration to use for the target text data.targetConfiguration - the TextData.Configurationpublic T optManager(ai.djl.ndarray.NDManager manager)
manager - the managerpublic T optUsage(ai.djl.training.dataset.Dataset.Usage usage)
usage - the usagepublic T optRepository(ai.djl.repository.Repository repository)
repository - the repositorypublic T optGroupId(java.lang.String groupId)
groupId - the groupId}public T optArtifactId(java.lang.String artifactId)
artifactId - the artifactId