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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#language_codeString

The RFC 5646 language code for the dominant language. For more information about RFC 5646, see [Tags for Identifying Languages] on the *IETF Tools* web site.

[1]: tools.ietf.org/html/rfc5646

Returns:

  • (String)

3350
3351
3352
3353
3354
3355
# File 'lib/aws-sdk-comprehend/types.rb', line 3350

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

#scoreFloat

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

Returns:

  • (Float)

3350
3351
3352
3353
3354
3355
# File 'lib/aws-sdk-comprehend/types.rb', line 3350

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