public class AddWordOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
AddWordOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
customizationId |
protected java.lang.String |
displayAs |
protected java.util.List<java.lang.String> |
soundsLike |
protected java.lang.String |
word |
protected java.lang.String |
wordName |
Modifier | Constructor and Description |
---|---|
protected |
AddWordOptions(AddWordOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
customizationId()
Gets the customizationId.
|
java.lang.String |
displayAs()
Gets the displayAs.
|
AddWordOptions.Builder |
newBuilder()
New builder.
|
java.util.List<java.lang.String> |
soundsLike()
Gets the soundsLike.
|
java.lang.String |
word()
Gets the word.
|
java.lang.String |
wordName()
Gets the wordName.
|
protected java.lang.String customizationId
protected java.lang.String wordName
protected java.lang.String word
protected java.util.List<java.lang.String> soundsLike
protected java.lang.String displayAs
protected AddWordOptions(AddWordOptions.Builder builder)
public AddWordOptions.Builder newBuilder()
public java.lang.String customizationId()
The customization ID (GUID) of the custom language model that is to be used for the request. You must make the request with credentials for the instance of the service that owns the custom model.
public java.lang.String wordName()
The custom word that is to be added to or updated in the custom language model. Do not include spaces in the word. Use a `-` (dash) or `_` (underscore) to connect the tokens of compound words. URL-encode the word if it includes non-ASCII characters. For more information, see [Character encoding](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-corporaWords#charEncoding).
public java.lang.String word()
For the **Add custom words** method, you must specify the custom word that is to be added to or updated in the custom model. Do not include spaces in the word. Use a `-` (dash) or `_` (underscore) to connect the tokens of compound words.
Omit this parameter for the **Add a custom word** method.
public java.util.List<java.lang.String> soundsLike()
An array of sounds-like pronunciations for the custom word. Specify how words that are difficult to pronounce, foreign words, acronyms, and so on can be pronounced by users. * For a word that is not in the service's base vocabulary, omit the parameter to have the service automatically generate a sounds-like pronunciation for the word. * For a word that is in the service's base vocabulary, use the parameter to specify additional pronunciations for the word. You cannot override the default pronunciation of a word; pronunciations you add augment the pronunciation from the base vocabulary.
A word can have at most five sounds-like pronunciations. A pronunciation can include at most 40 characters not including spaces.
public java.lang.String displayAs()
An alternative spelling for the custom word when it appears in a transcript. Use the parameter when you want the word to have a spelling that is different from its usual representation or from its spelling in corpora training data.