You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
- Defined in:
Instance Attribute Summary collapse
#entities ⇒ Array<Types::Entity>
A collection of entities identified in the input text.
Instance Attribute Details
#entities ⇒ Array<>
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.