DocumentContentElement Class

A DocumentContentElement.

Inheritance
builtins.object
DocumentContentElement

Constructor

DocumentContentElement(**kwargs)

Variables

content
str

Text content of the document content element.

polygon
list[Point]

Bounding polygon of the document content element.

span
DocumentSpan

Location of the element in the full document content.

confidence
float

Confidence of accurately extracting the document content element.

kind
str

The kind of document element. Possible kinds are "word" or "selectionMark" which correspond to a DocumentWord or DocumentSelectionMark, respectively.

Methods

from_dict

Converts a dict in the shape of a DocumentContentElement to the model itself.

to_dict

Returns a dict representation of DocumentContentElement.

from_dict

Converts a dict in the shape of a DocumentContentElement to the model itself.

from_dict(data: dict) -> azure.ai.formrecognizer._models.DocumentContentElement

Parameters

data
dict
Required

A dictionary in the shape of DocumentContentElement.

data
Required

Returns

DocumentContentElement

Return type

to_dict

Returns a dict representation of DocumentContentElement.

to_dict() -> dict

Returns

dict

Return type