v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-133276102.9 KB
projects

Creates a Model.

post/v3/{+parent}/models

Path parameters

parentstring required

Required. The project name, in form of projects/{project}/locations/{location}

Request body

trainExampleCountinteger

Output only. Number of examples (sentence pairs) used to train the model.

datasetstring

Required. The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}

createTimestring google-datetime

Output only. Timestamp when the model resource was created, which is also when the training started.

testExampleCountinteger

Output only. Number of examples (sentence pairs) used to test the model.

displayNamestring

The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

targetLanguageCodestring

Output only. The BCP-47 language code of the target language.

sourceLanguageCodestring

Output only. The BCP-47 language code of the source language.

namestring

The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}

validateExampleCountinteger

Output only. Number of examples (sentence pairs) used to validate the model.

updateTimestring google-datetime

Output only. Timestamp when this model was last updated.

Response

Successful response