Skip to content
Report an issue

Documents

ActionPriority

Bases: str, Enum

Priority levels for validation actions. More details can be found in the official documentation.

CRITICAL class-attribute instance-attribute

CRITICAL = 'Critical'

Critical priority

HIGH class-attribute instance-attribute

HIGH = 'High'

High priority

LOW class-attribute instance-attribute

LOW = 'Low'

Low priority

MEDIUM class-attribute instance-attribute

MEDIUM = 'Medium'

Medium priority

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

Bases: str, Enum

Project types available and supported by Documents Service.

IXP class-attribute instance-attribute

IXP = 'IXP'

Represents an IXP project type.

MODERN class-attribute instance-attribute

MODERN = 'Modern'

Represents a DU Modern project type.

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.