Class: Google::Apis::TranslateV3::Dataset
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::Dataset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3/classes.rb,
lib/google/apis/translate_v3/representations.rb,
lib/google/apis/translate_v3/representations.rb
Overview
A dataset that hosts the examples (sentence pairs) used for translation models.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
The name of the dataset to show in the interface.
-
#example_count ⇒ Fixnum
Output only.
-
#name ⇒ String
The resource name of the dataset, in form of
projects/
project-number-or-id/ locations/
location_id/datasets/
dataset_id`Corresponds to the JSON property
name`. -
#source_language_code ⇒ String
The BCP-47 language code of the source language.
-
#target_language_code ⇒ String
The BCP-47 language code of the target language.
-
#test_example_count ⇒ Fixnum
Output only.
-
#train_example_count ⇒ Fixnum
Output only.
-
#update_time ⇒ String
Output only.
-
#validate_example_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Dataset
constructor
A new instance of Dataset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Dataset
Returns a new instance of Dataset.
519 520 521 |
# File 'lib/google/apis/translate_v3/classes.rb', line 519 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when this dataset was created.
Corresponds to the JSON property createTime
469 470 471 |
# File 'lib/google/apis/translate_v3/classes.rb', line 469 def create_time @create_time end |
#display_name ⇒ 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.
Corresponds to the JSON property displayName
476 477 478 |
# File 'lib/google/apis/translate_v3/classes.rb', line 476 def display_name @display_name end |
#example_count ⇒ Fixnum
Output only. The number of examples in the dataset.
Corresponds to the JSON property exampleCount
481 482 483 |
# File 'lib/google/apis/translate_v3/classes.rb', line 481 def example_count @example_count end |
#name ⇒ String
The resource name of the dataset, in form of projects/
project-number-or-id/
locations/
location_id/datasets/
dataset_id`
Corresponds to the JSON property
name`
487 488 489 |
# File 'lib/google/apis/translate_v3/classes.rb', line 487 def name @name end |
#source_language_code ⇒ String
The BCP-47 language code of the source language.
Corresponds to the JSON property sourceLanguageCode
492 493 494 |
# File 'lib/google/apis/translate_v3/classes.rb', line 492 def source_language_code @source_language_code end |
#target_language_code ⇒ String
The BCP-47 language code of the target language.
Corresponds to the JSON property targetLanguageCode
497 498 499 |
# File 'lib/google/apis/translate_v3/classes.rb', line 497 def target_language_code @target_language_code end |
#test_example_count ⇒ Fixnum
Output only. Number of test examples (sentence pairs).
Corresponds to the JSON property testExampleCount
502 503 504 |
# File 'lib/google/apis/translate_v3/classes.rb', line 502 def test_example_count @test_example_count end |
#train_example_count ⇒ Fixnum
Output only. Number of training examples (sentence pairs).
Corresponds to the JSON property trainExampleCount
507 508 509 |
# File 'lib/google/apis/translate_v3/classes.rb', line 507 def train_example_count @train_example_count end |
#update_time ⇒ String
Output only. Timestamp when this dataset was last updated.
Corresponds to the JSON property updateTime
512 513 514 |
# File 'lib/google/apis/translate_v3/classes.rb', line 512 def update_time @update_time end |
#validate_example_count ⇒ Fixnum
Output only. Number of validation examples (sentence pairs).
Corresponds to the JSON property validateExampleCount
517 518 519 |
# File 'lib/google/apis/translate_v3/classes.rb', line 517 def validate_example_count @validate_example_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
524 525 526 527 528 529 530 531 532 533 534 535 |
# File 'lib/google/apis/translate_v3/classes.rb', line 524 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @example_count = args[:example_count] if args.key?(:example_count) @name = args[:name] if args.key?(:name) @source_language_code = args[:source_language_code] if args.key?(:source_language_code) @target_language_code = args[:target_language_code] if args.key?(:target_language_code) @test_example_count = args[:test_example_count] if args.key?(:test_example_count) @train_example_count = args[:train_example_count] if args.key?(:train_example_count) @update_time = args[:update_time] if args.key?(:update_time) @validate_example_count = args[:validate_example_count] if args.key?(:validate_example_count) end |