DocumentKeyValuePair Class

An object representing a document field with distinct field label (key) and field value (may be empty).

Inheritance
builtins.object
DocumentKeyValuePair

Constructor

DocumentKeyValuePair(**kwargs: Any)

Methods

from_dict

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

to_dict

Returns a dict representation of DocumentKeyValuePair.

from_dict

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

from_dict(data: Dict) -> DocumentKeyValuePair

Parameters

Name Description
data
Required

A dictionary in the shape of DocumentKeyValuePair.

Returns

Type Description

DocumentKeyValuePair

to_dict

Returns a dict representation of DocumentKeyValuePair.

to_dict() -> Dict

Returns

Type Description

dict

Attributes

confidence

Confidence of correctly extracting the key-value pair.

confidence: float

key

Field label of the key-value pair.

key: DocumentKeyValueElement

value

Field value of the key-value pair.

value: DocumentKeyValueElement | None