CustomFormSubmodel Class
Represents a submodel that extracts fields from a specific type of form.
New in version v2.1: The model_id property, support for to_dict and from_dict methods
- Inheritance
-
builtins.objectCustomFormSubmodel
Constructor
CustomFormSubmodel(**kwargs)
Variables
- model_id
- str
Model identifier of the submodel.
- accuracy
- float
The mean of the model's field accuracies.
- fields
- dict[str, CustomFormModelField]
A dictionary of the fields that this submodel will recognize from the input document. The fields dictionary keys are the name of the field. For models trained with labels, this is the training-time label of the field. For models trained without labels, a unique name is generated for each field.
- form_type
- str
Type of form this submodel recognizes.
Methods
| from_dict |
Converts a dict in the shape of a CustomFormSubmodel to the model itself. |
| to_dict |
Returns a dict representation of CustomFormSubmodel. |
from_dict
Converts a dict in the shape of a CustomFormSubmodel to the model itself.
from_dict(data: dict) -> azure.ai.formrecognizer._models.CustomFormSubmodel
Parameters
- data
Returns
CustomFormSubmodel
Return type
to_dict
Returns a dict representation of CustomFormSubmodel.
to_dict() -> dict
Returns
dict
Return type
Feedback
Submit and view feedback for