Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample

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

The translation example that contains reference sentences from various sources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample

Returns a new instance of GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample.



25727
25728
25729
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25727

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

Instance Attribute Details

#reference_sentence_pair_listsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList>

The reference sentences from inline text. Corresponds to the JSON property referenceSentencePairLists



25720
25721
25722
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25720

def reference_sentence_pair_lists
  @reference_sentence_pair_lists
end

#reference_sentences_file_inputsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput>

The reference sentences from file. Corresponds to the JSON property referenceSentencesFileInputs



25725
25726
25727
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25725

def reference_sentences_file_inputs
  @reference_sentences_file_inputs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25732
25733
25734
25735
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25732

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