You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Comprehend::Types::DominantLanguage

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb

Overview

Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

Instance Attribute Summary collapse

Instance Attribute Details

#language_codeString

The RFC 5646 language code for the dominant language.

Returns:

  • (String)


544
545
546
547
548
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 544

class DominantLanguage < Struct.new(
  :language_code,
  :score)
  include Aws::Structure
end

#scoreFloat

The level of confidence that Amazon Comprehend has in the accuracy of the detection.

Returns:

  • (Float)


544
545
546
547
548
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 544

class DominantLanguage < Struct.new(
  :language_code,
  :score)
  include Aws::Structure
end