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

Entity

import type { Entity } from "https://aws-api.deno.dev/v0.4/services/comprehend.ts?docs=full";

Provides information about an entity.

interface Entity {
BeginOffset?: number | null;
BlockReferences?: BlockReference[] | null;
EndOffset?: number | null;
Score?: number | null;
Text?: string | null;
Type?: EntityType | null;
}

§Properties

§
BeginOffset?: number | null
[src]

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?: BlockReference[] | null
[src]

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

§
EndOffset?: number | null
[src]

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?: number | null
[src]

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

§
Text?: string | null
[src]

The text of the entity.

§
Type?: EntityType | null
[src]

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.