public static class PreTrainedTranslationModelDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PreTrainedTranslationModelDetails |
build() |
PreTrainedTranslationModelDetails.Builder |
copy(PreTrainedTranslationModelDetails model) |
PreTrainedTranslationModelDetails.Builder |
languageCode(String languageCode) |
PreTrainedTranslationModelDetails.Builder |
version(String version)
Optional pre trained model version.
|
public PreTrainedTranslationModelDetails.Builder languageCode(String languageCode)
public PreTrainedTranslationModelDetails.Builder version(String version)
Optional pre trained model version. If nothing specified latest pre trained model will be used. Supported versions can be found at /modelTypes/{modelType}
version
- the value to setpublic PreTrainedTranslationModelDetails build()
public PreTrainedTranslationModelDetails.Builder copy(PreTrainedTranslationModelDetails model)
Copyright © 2016–2024. All rights reserved.