Class: Google::Apis::AiplatformV1::NlpSaftLangIdLocalesResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NlpSaftLangIdLocalesResult

Returns a new instance of NlpSaftLangIdLocalesResult.



31514
31515
31516
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31514

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

Instance Attribute Details

#predictionsArray<Google::Apis::AiplatformV1::NlpSaftLangIdLocalesResultLocale>

List of locales in which the text would be considered acceptable. Sorted in descending order according to each locale's respective likelihood. For example, if a Portuguese text is acceptable in both Brazil and Portugal, but is more strongly associated with Brazil, then the predictions would be ["pt-BR", "pt- PT"], in that order. May be empty, indicating that the model did not predict any acceptable locales. Corresponds to the JSON property predictions



31512
31513
31514
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31512

def predictions
  @predictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31519
31520
31521
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31519

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