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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

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. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.

Returns:

  • (String)

    The RFC 5646 language code for the dominant language.

#scoreFloat

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

Returns:

  • (Float)

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