You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/translator/text-translation/reference/v4/translate-api.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,19 +56,19 @@ Request parameters passed with the request are as follows:
56
56
|**language**| string | False | Specifies the language code for the `source` text. If not specified, the system autodetects the language of the source text. Accepted values are list of language code supported by the specified model. |
57
57
|**script**| string | False | Specifies the script of the source text. |
58
58
59
-
#### Targets array (user-specificed values for the translaated text)
59
+
#### Targets array (user-specified values for translated text)
60
60
61
61
| Parameter | Type | Required? | Description |
62
62
| --- | --- | --- | --- |
63
63
|**targets.language**| string | True |The language code for the translated (`target`) text *specified in the `targets` array*. Accepted values are [supported language](../../../language-support.md) codes for the translation operation.|
64
64
|**targets.script**| string | False | Specify the script of the translated text. |
65
-
|**targets.deploymentName**| string | False | Default is `general`, which uses `NMT` system. `your-model-name-gpt-4o-mini` is an example deployment name for the GPT-4o-mini model. `gpt-4o` uses GPT-4o model.<br> `<custom model id>` uses the custom `NMT` model tuned by customer.<br> |
66
-
|**targets.allowFallback**| string | False | If the desired model does not support a particular pair of source and target languages, an alternative approach may be employed. In such cases, the service may default to utilizing a general system as a substitute. This action ensures that translations can still be provided even when the preferred model is unavailable. Default is `true`. If `false` system returns an error if language pair isn't supported. |
65
+
|**targets.deploymentName**| string | False | Default is `general`, which uses `NMT` system. `your-model-name-gpt-4o-mini` is an example deployment name for the GPT-4o-mini model. `gpt-4o` uses GPT-4o model.<br> `<categoryID>` uses the custom `NMT` model tuned by customer.<br> |
66
+
|**targets.allowFallback**| string | False | If the desired model doesn't support a particular pair of source and target languages, an alternative approach may be employed. In such cases, the service may default to utilizing a general system as a substitute. This action ensures that translations can still be provided even when the preferred model is unavailable. Default is `true`. If `false` system returns an error if language pair isn't supported. |
67
67
|**targets.tone**| string | False | Desired tone of target translation. Accepted values are `formal`, `informal`, or `neutral`. |
68
68
|**targets.gender** (For more information, *see*[Gender-specific translations](#gender-specific-translations))| string | False | Desired gender of target translation. Accepted values are `male`, `female`, or `neutral`.|
69
-
|**targets.adaptiveDatasetId**| string | False | Reference dataset ID having sentence pair to generate adaptive customized translation|
70
-
|**targets.referenceTextPairs**| string | False | Reference text pairs to generate adaptive customized translation |
71
-
|**targets.referenceTextPairs.source**| string | False | Source text in reference text pair. If provided, `adaptiveDatasetId` is ignored |
69
+
|**targets.adaptiveDatasetId**| string | False | Reference dataset ID having sentence pair to generate adaptive customized translation. The maximum number of reference text pairs to generate adaptive customized translation is five (5).|
70
+
|**targets.referenceTextPairs**| string | False | Reference text pairs to generate adaptive customized translation.|
71
+
|**targets.referenceTextPairs.source**| string | False | Source text in reference text pair. If provided, `adaptiveDatasetId` is ignored.|
72
72
|**targets.referenceTextPairs.target**| string | False | Target text in reference text pair. |
73
73
|**targets.profanityAction**| string | False | Specifies how profanities should be treated in translations. Accepted values are: `NoAction` (default), `Marked`, or `Deleted`. |
74
74
|**targets.profanityMarker**| string | False | Specifies how profanities should be marked in translations. Accepted values are `Asterisk` (default) or Tag. |
@@ -481,7 +481,7 @@ Adaptive custom translation deploys on Translator service infrastructure. Charge
0 commit comments