{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-comprehend/refs/heads/main/json-structure/openapi.yml-entity-structure.json", "name": "Entity", "description": "

Provides information about an entity.

", "type": "object", "properties": { "Score": { "allOf": [ { "$ref": "#/components/schemas/Float" }, { "description": "The level of confidence that Amazon Comprehend has in the accuracy of the detection." } ] }, "Type": { "allOf": [ { "$ref": "#/components/schemas/EntityType" }, { "description": "

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.

" } ] }, "Text": { "allOf": [ { "$ref": "#/components/schemas/String" }, { "description": "The text of the entity." } ] }, "BeginOffset": { "allOf": [ { "$ref": "#/components/schemas/Integer" }, { "description": "

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.

" } ] }, "EndOffset": { "allOf": [ { "$ref": "#/components/schemas/Integer" }, { "description": "

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.

" } ] }, "BlockReferences": { "allOf": [ { "$ref": "#/components/schemas/ListOfBlockReferences" }, { "description": "A reference to each block for this entity. This field is empty for plain-text input." } ] } } }