Class Inference<DocT, PageT>Abstract

Type Parameters

  • DocT extends Prediction = Prediction

    an extension of a Prediction. Is generic by default to allow for easier optional PageT generic typing.

  • PageT extends DocT = DocT

    an extension of a DocT (Prediction). Should only be set if a document's pages have specific implementation.

Hierarchy

Constructors

Properties

endpointName?: string

Name of a document's endpoint. Has a default value for OTS APIs.

endpointVersion?: string

A document's version. Has a default value for OTS APIs.

extras?: ExtraField[] = []

Extraneous fields relating to specific tools for some APIs.

isRotationApplied?: boolean

A boolean denoting whether a given inference result was rotated.

pages: Page<PageT>[] = []

Wrapper for a document's pages prediction.

prediction: DocT

A document's top-level Prediction.

product: Product

Name and version of a given product.

Methods

  • Takes in an input string and replaces line breaks with \n.

    Returns

    cleaned out string

    Parameters

    • outStr: string

      string to cleanup

    Returns string

Generated using TypeDoc