libZSservicesZSamazonka-comprehendZSamazonka-comprehend
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Comprehend.Types.DominantLanguage

Description

 
Synopsis

Documentation

data DominantLanguage Source #

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.

See: newDominantLanguage smart constructor.

Constructors

DominantLanguage' 

Fields

Instances

Instances details
Eq DominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.Types.DominantLanguage

Read DominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.Types.DominantLanguage

Show DominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.Types.DominantLanguage

Generic DominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.Types.DominantLanguage

Associated Types

type Rep DominantLanguage :: Type -> Type #

NFData DominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.Types.DominantLanguage

Methods

rnf :: DominantLanguage -> () #

Hashable DominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.Types.DominantLanguage

FromJSON DominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.Types.DominantLanguage

type Rep DominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.Types.DominantLanguage

type Rep DominantLanguage = D1 ('MetaData "DominantLanguage" "Amazonka.Comprehend.Types.DominantLanguage" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "DominantLanguage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))

newDominantLanguage :: DominantLanguage Source #

Create a value of DominantLanguage with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:languageCode:DominantLanguage', dominantLanguage_languageCode - 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.

$sel:score:DominantLanguage', dominantLanguage_score - The level of confidence that Amazon Comprehend has in the accuracy of the detection.

dominantLanguage_languageCode :: Lens' DominantLanguage (Maybe Text) Source #

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.

dominantLanguage_score :: Lens' DominantLanguage (Maybe Double) Source #

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