- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- AdaptiveMtTranslation
- Try it!
Translate text using Adaptive MT.
HTTP request
POST https://translate.googleapis.com/v3/{parent=projects/*/locations/*}:adaptiveMtTranslate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Location to make a regional call. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "dataset": string, "content": [ string ] } |
Fields | |
---|---|
dataset |
Required. The resource name for the dataset to use for adaptive MT. |
content[] |
Required. The content of the input in string format. For now only one sentence per request is supported. |
Response body
An locations.adaptiveMtTranslate response.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"translations": [
{
object ( |
Fields | |
---|---|
translations[] |
Output only. The translation. |
languageCode |
Output only. The translation's language code. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-translation
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
AdaptiveMtTranslation
An AdaptiveMt translation.
JSON representation |
---|
{ "translatedText": string } |
Fields | |
---|---|
translatedText |
Output only. The translated text. |