Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample
- 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
-
#reference_sentence_pair_lists ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList>
The reference sentences from inline text.
-
#reference_sentences_file_inputs ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput>
The reference sentences from file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample
constructor
A new instance of GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_lists ⇒ Array<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_inputs ⇒ Array<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 |