Cloud AutoML V1 Client - Class TranslationModelMetadata (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1 Client class TranslationModelMetadata.

Model metadata that is specific to translation.

Generated from protobuf message google.cloud.automl.v1.TranslationModelMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ base_model string

The resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

↳ source_language_code string

Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training.

↳ target_language_code string

Output only. The target language (The BCP-47 language code) that is used for training.

getBaseModel

The resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

Returns
TypeDescription
string

setBaseModel

The resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceLanguageCode

Output only. Inferred from the dataset.

The source language (The BCP-47 language code) that is used for training.

Returns
TypeDescription
string

setSourceLanguageCode

Output only. Inferred from the dataset.

The source language (The BCP-47 language code) that is used for training.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTargetLanguageCode

Output only. The target language (The BCP-47 language code) that is used for training.

Returns
TypeDescription
string

setTargetLanguageCode

Output only. The target language (The BCP-47 language code) that is used for training.

Parameter
NameDescription
var string
Returns
TypeDescription
$this