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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String customizationId)
      Instantiates a new builder with required properties.
      Parameters:
      customizationId - the customizationId
  • Method Details

    • build

      public TrainLanguageModelOptions build()
      Builds a TrainLanguageModelOptions.
      Returns:
      the new TrainLanguageModelOptions instance
    • customizationId

      public TrainLanguageModelOptions.Builder customizationId​(String customizationId)
      Set the customizationId.
      Parameters:
      customizationId - the customizationId
      Returns:
      the TrainLanguageModelOptions builder
    • wordTypeToAdd

      public TrainLanguageModelOptions.Builder wordTypeToAdd​(String wordTypeToAdd)
      Set the wordTypeToAdd.
      Parameters:
      wordTypeToAdd - the wordTypeToAdd
      Returns:
      the TrainLanguageModelOptions builder
    • customizationWeight

      public TrainLanguageModelOptions.Builder customizationWeight​(Double customizationWeight)
      Set the customizationWeight.
      Parameters:
      customizationWeight - the customizationWeight
      Returns:
      the TrainLanguageModelOptions builder