Class: Google::Cloud::Translate::V3::Example
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V3::Example
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/translate/v3/automl_translation.rb
Overview
A sentence pair.
Instance Attribute Summary collapse
-
#name ⇒ ::String
readonly
Output only.
-
#source_text ⇒ ::String
Sentence in source language.
-
#target_text ⇒ ::String
Sentence in target language.
-
#usage ⇒ ::String
readonly
Output only.
Instance Attribute Details
#name ⇒ ::String (readonly)
Returns Output only. The resource name of the example, in form of
projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}
.
268 269 270 271 |
# File 'proto_docs/google/cloud/translate/v3/automl_translation.rb', line 268 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#source_text ⇒ ::String
Returns Sentence in source language.
268 269 270 271 |
# File 'proto_docs/google/cloud/translate/v3/automl_translation.rb', line 268 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#target_text ⇒ ::String
Returns Sentence in target language.
268 269 270 271 |
# File 'proto_docs/google/cloud/translate/v3/automl_translation.rb', line 268 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#usage ⇒ ::String (readonly)
Returns Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.
268 269 270 271 |
# File 'proto_docs/google/cloud/translate/v3/automl_translation.rb', line 268 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |