public class CreateLanguageModelOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
CreateLanguageModelOptions.BaseModelName
The name of the base language model that is to be customized by the new custom language model.
|
static class |
CreateLanguageModelOptions.Builder
Builder.
|
Modifier and Type | Method and Description |
---|---|
String |
baseModelName()
Gets the baseModelName.
|
String |
description()
Gets the description.
|
String |
dialect()
Gets the dialect.
|
String |
name()
Gets the name.
|
CreateLanguageModelOptions.Builder |
newBuilder()
New builder.
|
public CreateLanguageModelOptions.Builder newBuilder()
public String name()
A user-defined name for the new custom language model. Use a name that is unique among all custom language models that you own. Use a localized name that matches the language of the custom model. Use a name that describes the domain of the custom model, such as `Medical custom model` or `Legal custom model`.
public String baseModelName()
The name of the base language model that is to be customized by the new custom language model. The new custom model can be used only with the base model that it customizes.
To determine whether a base model supports language model customization, use the [Get a model](#getmodel) method and check that the attribute `custom_language_model` is set to `true`. You can also refer to [Language support for customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
public String dialect()
The dialect of the specified language that is to be used with the custom language model. _For all languages, it is always safe to omit this field._ The service automatically uses the language identifier from the name of the base model. For example, the service automatically uses `en-US` for all US English models.
If you specify the `dialect` for a new custom model, follow these guidelines. _For non-Spanish previous-generation models and for next-generation models,_ you must specify a value that matches the five-character language identifier from the name of the base model. _For Spanish previous-generation models,_ you must specify one of the following values: * `es-ES` for Castilian Spanish (`es-ES` models) * `es-LA` for Latin American Spanish (`es-AR`, `es-CL`, `es-CO`, and `es-PE` models) * `es-US` for Mexican (North American) Spanish (`es-MX` models)
All values that you pass for the `dialect` field are case-insensitive.
public String description()
A description of the new custom language model. Use a localized description that matches the language of the custom model.
Copyright © 2022 IBM Cloud. All rights reserved.