amazonka-comprehend-2.0: Amazon Comprehend SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Comprehend.Types.KeyPhrase

Description

 
Synopsis

Documentation

data KeyPhrase Source #

Describes a key noun phrase.

See: newKeyPhrase smart constructor.

Constructors

KeyPhrase' 

Fields

  • beginOffset :: Maybe Int

    The zero-based offset from the beginning of the source text to the first character in the key phrase.

  • endOffset :: Maybe Int

    The zero-based offset from the beginning of the source text to the last character in the key phrase.

  • score :: Maybe Double

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

  • text :: Maybe Text

    The text of a key noun phrase.

Instances

Instances details
FromJSON KeyPhrase Source # 
Instance details

Defined in Amazonka.Comprehend.Types.KeyPhrase

Generic KeyPhrase Source # 
Instance details

Defined in Amazonka.Comprehend.Types.KeyPhrase

Associated Types

type Rep KeyPhrase :: Type -> Type #

Read KeyPhrase Source # 
Instance details

Defined in Amazonka.Comprehend.Types.KeyPhrase

Show KeyPhrase Source # 
Instance details

Defined in Amazonka.Comprehend.Types.KeyPhrase

NFData KeyPhrase Source # 
Instance details

Defined in Amazonka.Comprehend.Types.KeyPhrase

Methods

rnf :: KeyPhrase -> () #

Eq KeyPhrase Source # 
Instance details

Defined in Amazonka.Comprehend.Types.KeyPhrase

Hashable KeyPhrase Source # 
Instance details

Defined in Amazonka.Comprehend.Types.KeyPhrase

type Rep KeyPhrase Source # 
Instance details

Defined in Amazonka.Comprehend.Types.KeyPhrase

type Rep KeyPhrase = D1 ('MetaData "KeyPhrase" "Amazonka.Comprehend.Types.KeyPhrase" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "KeyPhrase'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "beginOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "endOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newKeyPhrase :: KeyPhrase Source #

Create a value of KeyPhrase 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:beginOffset:KeyPhrase', keyPhrase_beginOffset - The zero-based offset from the beginning of the source text to the first character in the key phrase.

$sel:endOffset:KeyPhrase', keyPhrase_endOffset - The zero-based offset from the beginning of the source text to the last character in the key phrase.

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

$sel:text:KeyPhrase', keyPhrase_text - The text of a key noun phrase.

keyPhrase_beginOffset :: Lens' KeyPhrase (Maybe Int) Source #

The zero-based offset from the beginning of the source text to the first character in the key phrase.

keyPhrase_endOffset :: Lens' KeyPhrase (Maybe Int) Source #

The zero-based offset from the beginning of the source text to the last character in the key phrase.

keyPhrase_score :: Lens' KeyPhrase (Maybe Double) Source #

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

keyPhrase_text :: Lens' KeyPhrase (Maybe Text) Source #

The text of a key noun phrase.