Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/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) ⇒ GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair
constructor
A new instance of GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair
Returns a new instance of GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair.
32055 32056 32057 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32055 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_sentence ⇒ String
Source sentence in the sentence pair.
Corresponds to the JSON property sourceSentence
32048 32049 32050 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32048 def source_sentence @source_sentence end |
#target_sentence ⇒ String
Target sentence in the sentence pair.
Corresponds to the JSON property targetSentence
32053 32054 32055 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32053 def target_sentence @target_sentence end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32060 32061 32062 32063 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32060 def update!(**args) @source_sentence = args[:source_sentence] if args.key?(:source_sentence) @target_sentence = args[:target_sentence] if args.key?(:target_sentence) end |