Class: Google::Apis::TranslateV3::Model
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::Model
- 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 trained translation model.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#dataset ⇒ String
The dataset from which the model is trained, in form of
projects/
project- number-or-id/locations/
location_id/datasets/
dataset_id`Corresponds to the JSON property
dataset`. -
#display_name ⇒ String
The name of the model to show in the interface.
-
#name ⇒ String
The resource name of the model, in form of
projects/
project-number-or-id/ locations/
location_id/models/
model_id`Corresponds to the JSON property
name`. -
#source_language_code ⇒ String
Output only.
-
#target_language_code ⇒ String
Output only.
-
#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) ⇒ Model
constructor
A new instance of Model.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Model
Returns a new instance of Model.
1704 1705 1706 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1704 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when the model resource was created, which is also when
the training started.
Corresponds to the JSON property createTime
1653 1654 1655 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1653 def create_time @create_time end |
#dataset ⇒ String
The dataset from which the model is trained, in form of projects/
project-
number-or-id/locations/
location_id/datasets/
dataset_id`
Corresponds to the JSON property
dataset`
1659 1660 1661 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1659 def dataset @dataset end |
#display_name ⇒ 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.
Corresponds to the JSON property displayName
1666 1667 1668 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1666 def display_name @display_name end |
#name ⇒ String
The resource name of the model, in form of projects/
project-number-or-id/
locations/
location_id/models/
model_id`
Corresponds to the JSON property
name`
1672 1673 1674 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1672 def name @name end |
#source_language_code ⇒ String
Output only. The BCP-47 language code of the source language.
Corresponds to the JSON property sourceLanguageCode
1677 1678 1679 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1677 def source_language_code @source_language_code end |
#target_language_code ⇒ String
Output only. The BCP-47 language code of the target language.
Corresponds to the JSON property targetLanguageCode
1682 1683 1684 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1682 def target_language_code @target_language_code end |
#test_example_count ⇒ Fixnum
Output only. Number of examples (sentence pairs) used to test the model.
Corresponds to the JSON property testExampleCount
1687 1688 1689 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1687 def test_example_count @test_example_count end |
#train_example_count ⇒ Fixnum
Output only. Number of examples (sentence pairs) used to train the model.
Corresponds to the JSON property trainExampleCount
1692 1693 1694 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1692 def train_example_count @train_example_count end |
#update_time ⇒ String
Output only. Timestamp when this model was last updated.
Corresponds to the JSON property updateTime
1697 1698 1699 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1697 def update_time @update_time end |
#validate_example_count ⇒ Fixnum
Output only. Number of examples (sentence pairs) used to validate the model.
Corresponds to the JSON property validateExampleCount
1702 1703 1704 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1702 def validate_example_count @validate_example_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1709 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @dataset = args[:dataset] if args.key?(:dataset) @display_name = args[:display_name] if args.key?(:display_name) @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 |