DocumentStyle Class

An object representing observed text styles.

Inheritance
builtins.object
DocumentStyle

Constructor

DocumentStyle(**kwargs)

Variables

is_handwritten
bool

Is content handwritten?.

spans
list[DocumentSpan]

Location of the text elements in the concatenated content the style applies to.

confidence
float

Confidence of correctly identifying the style.

Methods

from_dict

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

to_dict

Returns a dict representation of DocumentStyle.

from_dict

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

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

Parameters

data
dict
Required

A dictionary in the shape of DocumentStyle.

data
Required

Returns

DocumentStyle

Return type

to_dict

Returns a dict representation of DocumentStyle.

to_dict() -> dict

Returns

dict

Return type