Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
A pair of sentences used as reference in source and target languages.
Instance Attribute Summary collapse
-
#source_sentence ⇒ String
Source sentence in the sentence pair.
-
#target_sentence ⇒ String
Target sentence in the sentence pair.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair
constructor
A new instance of GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair
Returns a new instance of GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair.
25617 25618 25619 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25617 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_sentence ⇒ String
Source sentence in the sentence pair.
Corresponds to the JSON property sourceSentence
25610 25611 25612 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25610 def source_sentence @source_sentence end |
#target_sentence ⇒ String
Target sentence in the sentence pair.
Corresponds to the JSON property targetSentence
25615 25616 25617 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25615 def target_sentence @target_sentence end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25622 25623 25624 25625 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25622 def update!(**args) @source_sentence = args[:source_sentence] if args.key?(:source_sentence) @target_sentence = args[:target_sentence] if args.key?(:target_sentence) end |