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.



30451
30452
30453
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30451

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



30449
30450
30451
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30449

def predictions
  @predictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30456
30457
30458
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30456

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