Documents
ActionPriority ¶
Bases: str, Enum
Priority levels for validation actions. More details can be found in the official documentation.
ClassificationResult ¶
Bases: BaseModel
A model representing the result of a document classification.
Attributes:
| Name | Type | Description |
|---|---|---|
document_id |
str
|
The ID of the classified document. |
document_type_id |
str
|
The ID of the predicted document type. |
confidence |
float
|
The confidence score of the classification. |
ocr_confidence |
float
|
The OCR confidence score of the document. |
reference |
Reference
|
The reference information for the classified document. |
document_bounds |
DocumentBounds
|
The bounds of the document in terms of pages and text. |
classifier_name |
str
|
The name of the classifier used. |
project_id |
str
|
The ID of the project associated with the classification. |
ExtractionResponse ¶
Bases: BaseModel
A model representing the response from a document extraction process.
Attributes:
| Name | Type | Description |
|---|---|---|
extraction_result |
ExtractionResult
|
The result of the extraction process. |
project_id |
str
|
The ID of the project associated with the extraction. |
tag |
str
|
The tag associated with the published model version. |
document_type_id |
str
|
The ID of the document type associated with the extraction. |
ExtractionResponseIXP ¶
Bases: ExtractionResponse
A model representing the response from a document extraction process for IXP projects.
Attributes:
| Name | Type | Description |
|---|---|---|
data_projection |
List[FieldGroupValueProjection]
|
A simplified projection of the extracted data. |
ProjectType ¶
ValidatedResult ¶
Bases: BaseModel
A model representing the result of a validation action.
Attributes:
| Name | Type | Description |
|---|---|---|
document_id |
str
|
The ID of the validated document. |
results_document |
dict
|
The validated results document. |
ValidationAction ¶
Bases: BaseModel
A model representing a validation action for a document.
Attributes:
| Name | Type | Description |
|---|---|---|
action_data |
dict
|
The data associated with the validation action. |
action_status |
str
|
The status of the validation action. Possible values can be found in the official documentation. |
project_id |
str
|
The ID of the project associated with the validation action. |
tag |
str
|
The tag associated with the published model version. |
operation_id |
str
|
The operation ID associated with the validation action. |