public abstract static class TextDataset.Builder<T extends TextDataset.Builder<T>>
extends ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<T>
TextDataset.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
optManager(ai.djl.ndarray.NDManager manager)
Sets the optional manager for the dataset (default follows engine default).
|
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. |
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 manager