Class TrainLanguageModelOptions.Builder
java.lang.Object
com.ibm.watson.speech_to_text.v1.model.TrainLanguageModelOptions.Builder
- Enclosing class:
- TrainLanguageModelOptions
public static class TrainLanguageModelOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TrainLanguageModelOptions
build()
Builds a TrainLanguageModelOptions.TrainLanguageModelOptions.Builder
customizationId(String customizationId)
Set the customizationId.TrainLanguageModelOptions.Builder
customizationWeight(Double customizationWeight)
Set the customizationWeight.TrainLanguageModelOptions.Builder
wordTypeToAdd(String wordTypeToAdd)
Set the wordTypeToAdd.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
customizationId
- the customizationId
-
-
Method Details
-
build
Builds a TrainLanguageModelOptions.- Returns:
- the new TrainLanguageModelOptions instance
-
customizationId
Set the customizationId.- Parameters:
customizationId
- the customizationId- Returns:
- the TrainLanguageModelOptions builder
-
wordTypeToAdd
Set the wordTypeToAdd.- Parameters:
wordTypeToAdd
- the wordTypeToAdd- Returns:
- the TrainLanguageModelOptions builder
-
customizationWeight
Set the customizationWeight.- Parameters:
customizationWeight
- the customizationWeight- Returns:
- the TrainLanguageModelOptions builder
-