Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Model (v1.2.0)

Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Model.

A trained translation model.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#dataset

def dataset() -> ::String
Returns
  • (::String) — The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}

#dataset=

def dataset=(value) -> ::String
Parameter
  • value (::String) — The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
Returns
  • (::String) — The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}

#display_name

def display_name() -> ::String
Returns
  • (::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.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.

#name

def name() -> ::String
Returns
  • (::String) — The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
Returns
  • (::String) — The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}

#source_language_code

def source_language_code() -> ::String
Returns
  • (::String) — Output only. The BCP-47 language code of the source language.

#target_language_code

def target_language_code() -> ::String
Returns
  • (::String) — Output only. The BCP-47 language code of the target language.

#test_example_count

def test_example_count() -> ::Integer
Returns
  • (::Integer) — Output only. Number of examples (sentence pairs) used to test the model.

#train_example_count

def train_example_count() -> ::Integer
Returns
  • (::Integer) — Output only. Number of examples (sentence pairs) used to train the model.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#validate_example_count

def validate_example_count() -> ::Integer
Returns
  • (::Integer) — Output only. Number of examples (sentence pairs) used to validate the model.