REST Resource: projects.locations.models

Resource: Model

A trained translation model.

JSON representation
{
  "name": string,
  "displayName": string,
  "dataset": string,
  "sourceLanguageCode": string,
  "targetLanguageCode": string,
  "trainExampleCount": integer,
  "validateExampleCount": integer,
  "testExampleCount": integer,
  "createTime": string,
  "updateTime": string
}
Fields
name

string

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

displayName

string

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.

dataset

string

The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{locationId}/datasets/{datasetId}

sourceLanguageCode

string

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

targetLanguageCode

string

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

trainExampleCount

integer

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

validateExampleCount

integer

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

testExampleCount

integer

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

createTime

string (Timestamp format)

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

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. Timestamp when this model was last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Methods

create

Creates a Model.

delete

Deletes a model.

get

Gets a model.

list

Lists models.