Cloud AutoML V1 Client - Class TranslationModelMetadata (1.6.5)

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

Namespace

Google \ Cloud \ AutoMl \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getSourceLanguageCode

Output only. Inferred from the dataset.

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

Returns
Type Description
string

setSourceLanguageCode

Output only. Inferred from the dataset.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getTargetLanguageCode

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

Returns
Type Description
string

setTargetLanguageCode

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

Parameter
Name Description
var string
Returns
Type Description
$this