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

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

A dataset that hosts the examples (sentence pairs) used for translation models.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

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

#display_name

def display_name() -> ::String
Returns
  • (::String) — The name of the dataset 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 dataset 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 dataset 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.

#example_count

def example_count() -> ::Integer
Returns
  • (::Integer) — Output only. The number of examples in the dataset.

#name

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

#name=

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

#source_language_code

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

#source_language_code=

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

#target_language_code

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

#target_language_code=

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

#test_example_count

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

#train_example_count

def train_example_count() -> ::Integer
Returns
  • (::Integer) — Output only. Number of training examples (sentence pairs).

#update_time

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

#validate_example_count

def validate_example_count() -> ::Integer
Returns
  • (::Integer) — Output only. Number of validation examples (sentence pairs).