| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Comprehend.Types.DominantLanguage
Description
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
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.