|
1 | 1 | /* |
2 | | - * (C) Copyright IBM Corp. 2018, 2020. |
| 2 | + * (C) Copyright IBM Corp. 2021. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
5 | 5 | * the License. You may obtain a copy of the License at |
@@ -21,30 +21,44 @@ public class CreateLanguageModelOptions extends GenericModel { |
21 | 21 | * The name of the base language model that is to be customized by the new custom language model. |
22 | 22 | * The new custom model can be used only with the base model that it customizes. |
23 | 23 | * |
24 | | - * <p>To determine whether a base model supports language model customization, use the **Get a |
25 | | - * model** method and check that the attribute `custom_language_model` is set to `true`. You can |
26 | | - * also refer to [Language support for |
27 | | - * customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-customization#languageSupport). |
| 24 | + * <p>To determine whether a base model supports language model customization, use the [Get a |
| 25 | + * model](#getmodel) method and check that the attribute `custom_language_model` is set to `true`. |
| 26 | + * You can also refer to [Language support for |
| 27 | + * customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support#custom-language-support). |
28 | 28 | */ |
29 | 29 | public interface BaseModelName { |
| 30 | + /** ar-MS_Telephony. */ |
| 31 | + String AR_MS_TELEPHONY = "ar-MS_Telephony"; |
30 | 32 | /** de-DE_BroadbandModel. */ |
31 | 33 | String DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel"; |
32 | 34 | /** de-DE_NarrowbandModel. */ |
33 | 35 | String DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel"; |
| 36 | + /** de-DE_Telephony. */ |
| 37 | + String DE_DE_TELEPHONY = "de-DE_Telephony"; |
34 | 38 | /** en-AU_BroadbandModel. */ |
35 | 39 | String EN_AU_BROADBANDMODEL = "en-AU_BroadbandModel"; |
36 | 40 | /** en-AU_NarrowbandModel. */ |
37 | 41 | String EN_AU_NARROWBANDMODEL = "en-AU_NarrowbandModel"; |
| 42 | + /** en-AU_Telephony. */ |
| 43 | + String EN_AU_TELEPHONY = "en-AU_Telephony"; |
38 | 44 | /** en-GB_BroadbandModel. */ |
39 | 45 | String EN_GB_BROADBANDMODEL = "en-GB_BroadbandModel"; |
40 | 46 | /** en-GB_NarrowbandModel. */ |
41 | 47 | String EN_GB_NARROWBANDMODEL = "en-GB_NarrowbandModel"; |
| 48 | + /** en-GB_Telephony. */ |
| 49 | + String EN_GB_TELEPHONY = "en-GB_Telephony"; |
| 50 | + /** en-IN_Telephony. */ |
| 51 | + String EN_IN_TELEPHONY = "en-IN_Telephony"; |
42 | 52 | /** en-US_BroadbandModel. */ |
43 | 53 | String EN_US_BROADBANDMODEL = "en-US_BroadbandModel"; |
| 54 | + /** en-US_Multimedia. */ |
| 55 | + String EN_US_MULTIMEDIA = "en-US_Multimedia"; |
44 | 56 | /** en-US_NarrowbandModel. */ |
45 | 57 | String EN_US_NARROWBANDMODEL = "en-US_NarrowbandModel"; |
46 | 58 | /** en-US_ShortForm_NarrowbandModel. */ |
47 | 59 | String EN_US_SHORTFORM_NARROWBANDMODEL = "en-US_ShortForm_NarrowbandModel"; |
| 60 | + /** en-US_Telephony. */ |
| 61 | + String EN_US_TELEPHONY = "en-US_Telephony"; |
48 | 62 | /** es-AR_BroadbandModel. */ |
49 | 63 | String ES_AR_BROADBANDMODEL = "es-AR_BroadbandModel"; |
50 | 64 | /** es-AR_NarrowbandModel. */ |
@@ -61,6 +75,8 @@ public interface BaseModelName { |
61 | 75 | String ES_ES_BROADBANDMODEL = "es-ES_BroadbandModel"; |
62 | 76 | /** es-ES_NarrowbandModel. */ |
63 | 77 | String ES_ES_NARROWBANDMODEL = "es-ES_NarrowbandModel"; |
| 78 | + /** es-ES_Telephony. */ |
| 79 | + String ES_ES_TELEPHONY = "es-ES_Telephony"; |
64 | 80 | /** es-MX_BroadbandModel. */ |
65 | 81 | String ES_MX_BROADBANDMODEL = "es-MX_BroadbandModel"; |
66 | 82 | /** es-MX_NarrowbandModel. */ |
@@ -73,22 +89,40 @@ public interface BaseModelName { |
73 | 89 | String FR_CA_BROADBANDMODEL = "fr-CA_BroadbandModel"; |
74 | 90 | /** fr-CA_NarrowbandModel. */ |
75 | 91 | String FR_CA_NARROWBANDMODEL = "fr-CA_NarrowbandModel"; |
| 92 | + /** fr-CA_Telephony. */ |
| 93 | + String FR_CA_TELEPHONY = "fr-CA_Telephony"; |
76 | 94 | /** fr-FR_BroadbandModel. */ |
77 | 95 | String FR_FR_BROADBANDMODEL = "fr-FR_BroadbandModel"; |
| 96 | + /** fr-FR_Multimedia. */ |
| 97 | + String FR_FR_MULTIMEDIA = "fr-FR_Multimedia"; |
78 | 98 | /** fr-FR_NarrowbandModel. */ |
79 | 99 | String FR_FR_NARROWBANDMODEL = "fr-FR_NarrowbandModel"; |
| 100 | + /** fr-FR_Telephony. */ |
| 101 | + String FR_FR_TELEPHONY = "fr-FR_Telephony"; |
| 102 | + /** hi-IN_Telephony. */ |
| 103 | + String HI_IN_TELEPHONY = "hi-IN_Telephony"; |
80 | 104 | /** it-IT_BroadbandModel. */ |
81 | 105 | String IT_IT_BROADBANDMODEL = "it-IT_BroadbandModel"; |
82 | 106 | /** it-IT_NarrowbandModel. */ |
83 | 107 | String IT_IT_NARROWBANDMODEL = "it-IT_NarrowbandModel"; |
| 108 | + /** it-IT_Telephony. */ |
| 109 | + String IT_IT_TELEPHONY = "it-IT_Telephony"; |
84 | 110 | /** ja-JP_BroadbandModel. */ |
85 | 111 | String JA_JP_BROADBANDMODEL = "ja-JP_BroadbandModel"; |
| 112 | + /** ja-JP_Multimedia. */ |
| 113 | + String JA_JP_MULTIMEDIA = "ja-JP_Multimedia"; |
86 | 114 | /** ja-JP_NarrowbandModel. */ |
87 | 115 | String JA_JP_NARROWBANDMODEL = "ja-JP_NarrowbandModel"; |
88 | 116 | /** ko-KR_BroadbandModel. */ |
89 | 117 | String KO_KR_BROADBANDMODEL = "ko-KR_BroadbandModel"; |
| 118 | + /** ko-KR_Multimedia. */ |
| 119 | + String KO_KR_MULTIMEDIA = "ko-KR_Multimedia"; |
90 | 120 | /** ko-KR_NarrowbandModel. */ |
91 | 121 | String KO_KR_NARROWBANDMODEL = "ko-KR_NarrowbandModel"; |
| 122 | + /** ko-KR_Telephony. */ |
| 123 | + String KO_KR_TELEPHONY = "ko-KR_Telephony"; |
| 124 | + /** nl-BE_Telephony. */ |
| 125 | + String NL_BE_TELEPHONY = "nl-BE_Telephony"; |
92 | 126 | /** nl-NL_BroadbandModel. */ |
93 | 127 | String NL_NL_BROADBANDMODEL = "nl-NL_BroadbandModel"; |
94 | 128 | /** nl-NL_NarrowbandModel. */ |
@@ -97,6 +131,8 @@ public interface BaseModelName { |
97 | 131 | String PT_BR_BROADBANDMODEL = "pt-BR_BroadbandModel"; |
98 | 132 | /** pt-BR_NarrowbandModel. */ |
99 | 133 | String PT_BR_NARROWBANDMODEL = "pt-BR_NarrowbandModel"; |
| 134 | + /** pt-BR_Telephony. */ |
| 135 | + String PT_BR_TELEPHONY = "pt-BR_Telephony"; |
100 | 136 | } |
101 | 137 |
|
102 | 138 | protected String name; |
@@ -225,10 +261,10 @@ public String name() { |
225 | 261 | * <p>The name of the base language model that is to be customized by the new custom language |
226 | 262 | * model. The new custom model can be used only with the base model that it customizes. |
227 | 263 | * |
228 | | - * <p>To determine whether a base model supports language model customization, use the **Get a |
229 | | - * model** method and check that the attribute `custom_language_model` is set to `true`. You can |
230 | | - * also refer to [Language support for |
231 | | - * customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-customization#languageSupport). |
| 264 | + * <p>To determine whether a base model supports language model customization, use the [Get a |
| 265 | + * model](#getmodel) method and check that the attribute `custom_language_model` is set to `true`. |
| 266 | + * You can also refer to [Language support for |
| 267 | + * customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support#custom-language-support). |
232 | 268 | * |
233 | 269 | * @return the baseModelName |
234 | 270 | */ |
@@ -241,20 +277,18 @@ public String baseModelName() { |
241 | 277 | * |
242 | 278 | * <p>The dialect of the specified language that is to be used with the custom language model. For |
243 | 279 | * most languages, the dialect matches the language of the base model by default. For example, |
244 | | - * `en-US` is used for either of the US English language models. |
| 280 | + * `en-US` is used for the US English language models. All dialect values are case-insensitive. |
245 | 281 | * |
246 | | - * <p>For a Spanish language, the service creates a custom language model that is suited for |
247 | | - * speech in one of the following dialects: * `es-ES` for Castilian Spanish (`es-ES` models) * |
248 | | - * `es-LA` for Latin American Spanish (`es-AR`, `es-CL`, `es-CO`, and `es-PE` models) * `es-US` |
249 | | - * for Mexican (North American) Spanish (`es-MX` models) |
| 282 | + * <p>The parameter is meaningful only for Spanish language models, for which you can always |
| 283 | + * safely omit the parameter to have the service create the correct mapping. For Spanish, the |
| 284 | + * service creates a custom language model that is suited for speech in one of the following |
| 285 | + * dialects: * `es-ES` for Castilian Spanish (`es-ES` models) * `es-LA` for Latin American Spanish |
| 286 | + * (`es-AR`, `es-CL`, `es-CO`, and `es-PE` models) * `es-US` for Mexican (North American) Spanish |
| 287 | + * (`es-MX` models) |
250 | 288 | * |
251 | | - * <p>The parameter is meaningful only for Spanish models, for which you can always safely omit |
252 | | - * the parameter to have the service create the correct mapping. |
253 | | - * |
254 | | - * <p>If you specify the `dialect` parameter for non-Spanish language models, its value must match |
255 | | - * the language of the base model. If you specify the `dialect` for Spanish language models, its |
256 | | - * value must match one of the defined mappings as indicated (`es-ES`, `es-LA`, or `es-MX`). All |
257 | | - * dialect values are case-insensitive. |
| 289 | + * <p>If you specify the `dialect` parameter for a non-Spanish language model, its value must |
| 290 | + * match the language of the base model. If you specify the `dialect` for a Spanish language |
| 291 | + * model, its value must match one of the defined mappings (`es-ES`, `es-LA`, or `es-MX`). |
258 | 292 | * |
259 | 293 | * @return the dialect |
260 | 294 | */ |
|