| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Comprehend.Types.KeyPhrase
Description
Synopsis
- data KeyPhrase = KeyPhrase' {}
- newKeyPhrase :: KeyPhrase
- keyPhrase_beginOffset :: Lens' KeyPhrase (Maybe Int)
- keyPhrase_text :: Lens' KeyPhrase (Maybe Text)
- keyPhrase_score :: Lens' KeyPhrase (Maybe Double)
- keyPhrase_endOffset :: Lens' KeyPhrase (Maybe Int)
Documentation
Describes a key noun phrase.
See: newKeyPhrase smart constructor.
Constructors
| KeyPhrase' | |
Fields
| |
Instances
| Eq KeyPhrase Source # | |
| Read KeyPhrase Source # | |
| Show KeyPhrase Source # | |
| Generic KeyPhrase Source # | |
| NFData KeyPhrase Source # | |
Defined in Amazonka.Comprehend.Types.KeyPhrase | |
| Hashable KeyPhrase Source # | |
Defined in Amazonka.Comprehend.Types.KeyPhrase | |
| FromJSON KeyPhrase Source # | |
| type Rep KeyPhrase Source # | |
Defined in Amazonka.Comprehend.Types.KeyPhrase type Rep KeyPhrase = D1 ('MetaData "KeyPhrase" "Amazonka.Comprehend.Types.KeyPhrase" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "KeyPhrase'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "beginOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "endOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) | |
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 - A character offset in the input text that shows where the key phrase
begins (the first character is at position 0). The offset returns the
position of each UTF-8 code point in the string. A code point is the
abstract character from a particular graphical representation. For
example, a multi-byte UTF-8 character maps to a single code point.
$sel:text:KeyPhrase', keyPhrase_text - The text of a key noun phrase.
$sel:score:KeyPhrase', keyPhrase_score - The level of confidence that Amazon Comprehend has in the accuracy of
the detection.
$sel:endOffset:KeyPhrase', keyPhrase_endOffset - A character offset in the input text where the key phrase ends. The
offset returns the position of each UTF-8 code point in the string. A
code point is the abstract character from a particular graphical
representation. For example, a multi-byte UTF-8 character maps to a
single code point.
keyPhrase_beginOffset :: Lens' KeyPhrase (Maybe Int) Source #
A character offset in the input text that shows where the key phrase begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
keyPhrase_score :: Lens' KeyPhrase (Maybe Double) Source #
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
keyPhrase_endOffset :: Lens' KeyPhrase (Maybe Int) Source #
A character offset in the input text where the key phrase ends. The
offset returns the position of each UTF-8 code point in the string. A
code point is the abstract character from a particular graphical
representation. For example, a multi-byte UTF-8 character maps to a
single code point.