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 |
Synopsis
- data KeyPhrase = KeyPhrase' {}
- newKeyPhrase :: KeyPhrase
- keyPhrase_beginOffset :: Lens' KeyPhrase (Maybe Int)
- keyPhrase_endOffset :: Lens' KeyPhrase (Maybe Int)
- keyPhrase_score :: Lens' KeyPhrase (Maybe Double)
- keyPhrase_text :: Lens' KeyPhrase (Maybe Text)
Documentation
Describes a key noun phrase.
See: newKeyPhrase
smart constructor.
KeyPhrase' | |
|
Instances
FromJSON KeyPhrase Source # | |
Generic KeyPhrase Source # | |
Read KeyPhrase Source # | |
Show KeyPhrase Source # | |
NFData KeyPhrase Source # | |
Defined in Amazonka.Comprehend.Types.KeyPhrase | |
Eq KeyPhrase Source # | |
Hashable KeyPhrase Source # | |
Defined in Amazonka.Comprehend.Types.KeyPhrase | |
type Rep KeyPhrase Source # | |
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.