public static class TrainLanguageModelOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
TrainLanguageModelOptions.Builder()
Instantiates a new builder.
|
TrainLanguageModelOptions.Builder(java.lang.String customizationId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
TrainLanguageModelOptions |
build()
Builds a TrainLanguageModelOptions.
|
TrainLanguageModelOptions.Builder |
customizationId(java.lang.String customizationId)
Set the customizationId.
|
TrainLanguageModelOptions.Builder |
customizationWeight(java.lang.Double customizationWeight)
Set the customizationWeight.
|
TrainLanguageModelOptions.Builder |
wordTypeToAdd(java.lang.String wordTypeToAdd)
Set the wordTypeToAdd.
|
public TrainLanguageModelOptions.Builder()
public TrainLanguageModelOptions.Builder(java.lang.String customizationId)
customizationId
- the customizationIdpublic TrainLanguageModelOptions build()
public TrainLanguageModelOptions.Builder customizationId(java.lang.String customizationId)
customizationId
- the customizationIdpublic TrainLanguageModelOptions.Builder wordTypeToAdd(java.lang.String wordTypeToAdd)
wordTypeToAdd
- the wordTypeToAddpublic TrainLanguageModelOptions.Builder customizationWeight(java.lang.Double customizationWeight)
customizationWeight
- the customizationWeight