Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DetectEntitiesResponse

import type { DetectEntitiesResponse } from "https://aws-api.deno.dev/v0.4/services/comprehend.ts?docs=full";
interface DetectEntitiesResponse {
Blocks?: Block[] | null;
DocumentMetadata?: DocumentMetadata | null;
DocumentType?: DocumentTypeListItem[] | null;
Entities?: Entity[] | null;
Errors?: ErrorsListItem[] | null;
}

§Properties

§
Blocks?: Block[] | null
[src]

Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.

The Block content for a Word input document does not include a Geometry field.

The Block field is not present in the response for plain-text inputs.

§
DocumentMetadata?: DocumentMetadata | null
[src]

Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.

§
DocumentType?: DocumentTypeListItem[] | null
[src]

The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.

§
Entities?: Entity[] | null
[src]

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 Entities in the Comprehend Developer Guide.

§
Errors?: ErrorsListItem[] | null
[src]

Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.