Class Document<T>

Document prediction wrapper class. Holds the results of a parsed document.

Type Parameters

  • T extends Inference

    an extension of an Inference. Mandatory in order to properly create an inference.

Constructors

Properties

Methods

Constructors

Properties

extras?: Extras<ExtraField>

Potential Extras fields sent back along the prediction.

filename: string

File name as sent back by the server.

id: string

Id of the document as sent back by the server.

inference: T

Result of the base inference.

nPages: number

Page number as sent back by the API.

ocr?: Ocr

Raw-text response for allWords parsing.

Methods