Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair

Returns a new instance of GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair.



29116
29117
29118
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29116

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#source_sentenceString

Source sentence in the sentence pair. Corresponds to the JSON property sourceSentence

Returns:

  • (String)


29109
29110
29111
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29109

def source_sentence
  @source_sentence
end

#target_sentenceString

Target sentence in the sentence pair. Corresponds to the JSON property targetSentence

Returns:

  • (String)


29114
29115
29116
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29114

def target_sentence
  @target_sentence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29121
29122
29123
29124
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29121

def update!(**args)
  @source_sentence = args[:source_sentence] if args.key?(:source_sentence)
  @target_sentence = args[:target_sentence] if args.key?(:target_sentence)
end