REST Resource: projects.locations.models Stay organized with collections Save and categorize content based on your preferences.
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 |
The resource name of the model, in form of |
displayName |
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 |
The dataset from which the model is trained, in form of |
sourceLanguageCode |
Output only. The BCP-47 language code of the source language. |
targetLanguageCode |
Output only. The BCP-47 language code of the target language. |
trainExampleCount |
Output only. Number of examples (sentence pairs) used to train the model. |
validateExampleCount |
Output only. Number of examples (sentence pairs) used to validate the model. |
testExampleCount |
Output only. Number of examples (sentence pairs) used to test the model. |
createTime |
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: |
updateTime |
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: |
Methods | |
|---|---|
| Creates a Model. |
| Deletes a model. |
| Gets a model. |
| Lists models. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-30 UTC.