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.Entity

Description

 
Synopsis

Documentation

data Entity Source #

Provides information about an entity.

See: newEntity smart constructor.

Constructors

Entity' 

Fields

  • beginOffset :: Maybe Int

    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.

  • blockReferences :: Maybe [BlockReference]

    A reference to each block for this entity. This field is empty for plain-text input.

  • endOffset :: Maybe Int

    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.

  • score :: Maybe Double

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

  • text :: Maybe Text

    The text of the entity.

  • type' :: Maybe EntityType

    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.

Instances

Instances details
FromJSON Entity Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Entity

Generic Entity Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Entity

Associated Types

type Rep Entity :: Type -> Type #

Methods

from :: Entity -> Rep Entity x #

to :: Rep Entity x -> Entity #

Read Entity Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Entity

Show Entity Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Entity

NFData Entity Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Entity

Methods

rnf :: Entity -> () #

Eq Entity Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Entity

Methods

(==) :: Entity -> Entity -> Bool #

(/=) :: Entity -> Entity -> Bool #

Hashable Entity Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Entity

Methods

hashWithSalt :: Int -> Entity -> Int #

hash :: Entity -> Int #

type Rep Entity Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Entity

newEntity :: Entity Source #

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_text :: Lens' Entity (Maybe Text) Source #

The text of the entity.

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.