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 Entity = Entity' {
- beginOffset :: Maybe Int
- blockReferences :: Maybe [BlockReference]
- endOffset :: Maybe Int
- score :: Maybe Double
- text :: Maybe Text
- type' :: Maybe EntityType
- newEntity :: Entity
- entity_beginOffset :: Lens' Entity (Maybe Int)
- entity_blockReferences :: Lens' Entity (Maybe [BlockReference])
- entity_endOffset :: Lens' Entity (Maybe Int)
- entity_score :: Lens' Entity (Maybe Double)
- entity_text :: Lens' Entity (Maybe Text)
- entity_type :: Lens' Entity (Maybe EntityType)
Documentation
Provides information about an entity.
See: newEntity
smart constructor.
Entity' | |
|
Instances
Create a value of Entity
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:
Entity
, entity_beginOffset
- The zero-based offset from the beginning of the source text to the first
character in the entity.
This field is empty for non-text input.
$sel:blockReferences:Entity'
, entity_blockReferences
- A reference to each block for this entity. This field is empty for
plain-text input.
Entity
, entity_endOffset
- The zero-based offset from the beginning of the source text to the last
character in the entity.
This field is empty for non-text input.
$sel:score:Entity'
, entity_score
- The level of confidence that Amazon Comprehend has in the accuracy of
the detection.
$sel:text:Entity'
, entity_text
- The text of the entity.
$sel:type':Entity'
, entity_type
- The entity type. For entity detection using the built-in model, this
field contains one of the standard entity types listed below.
For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.
entity_beginOffset :: Lens' Entity (Maybe Int) Source #
The zero-based offset from the beginning of the source text to the first character in the entity.
This field is empty for non-text input.
entity_blockReferences :: Lens' Entity (Maybe [BlockReference]) Source #
A reference to each block for this entity. This field is empty for plain-text input.
entity_endOffset :: Lens' Entity (Maybe Int) Source #
The zero-based offset from the beginning of the source text to the last character in the entity.
This field is empty for non-text input.
entity_score :: Lens' Entity (Maybe Double) Source #
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
entity_type :: Lens' Entity (Maybe EntityType) Source #
The entity type. For entity detection using the built-in model, this field contains one of the standard entity types listed below.
For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.