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

Block

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

Information about each word or line of text in the input document.

For additional information, see Block in the Amazon Textract API reference.

interface Block {
BlockType?: BlockType | null;
Geometry?: Geometry | null;
Id?: string | null;
Page?: number | null;
Relationships?: RelationshipsListItem[] | null;
Text?: string | null;
}

§Properties

§
BlockType?: BlockType | null
[src]

The block represents a line of text or one word of text.

  • WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
  • LINE - A string of tab-delimited, contiguous words that are detected on a document page
§
Geometry?: Geometry | null
[src]

Co-ordinates of the rectangle or polygon that contains the text.

§
Id?: string | null
[src]

Unique identifier for the block.

§
Page?: number | null
[src]

Page number where the block appears.

§
Relationships?: RelationshipsListItem[] | null
[src]

A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.

§
Text?: string | null
[src]

The word or line of text extracted from the block.