CustomFormModelField Class

A field that the model will extract from forms it analyzes.

New in version v2.1: Support for to_dict and from_dict methods

Inheritance
builtins.object
CustomFormModelField

Constructor

CustomFormModelField(**kwargs: Any)

Methods

from_dict

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

to_dict

Returns a dict representation of CustomFormModelField.

from_dict

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

from_dict(data: Dict) -> CustomFormModelField

Parameters

Name Description
data
Required

A dictionary in the shape of CustomFormModelField.

Returns

Type Description

CustomFormModelField

to_dict

Returns a dict representation of CustomFormModelField.

to_dict() -> Dict

Returns

Type Description

dict

Attributes

accuracy

The estimated recognition accuracy for this field.

accuracy: float

label

The form fields label on the form.

label: str

name

Canonical name; uniquely identifies a field within the form.

name: str