Split

Split Range

class SplitRange(server_response)

Split inference result.

Parameters:

server_response (dict[str, Any])

extract_from_input_source(input_source)

Apply the split range inference to a file and return a single extracted PDF.

Parameters:

input_source (LocalInputSource) – Local file to apply the inference to

Return type:

ExtractedPDF

Returns:

Extracted PDF

document_type: str

The document type, as identified on given classification values.

extraction_response: ExtractionResponse | None = None

The extraction response associated with the split.

page_range: list[int]

0-based page indexes, where the first integer indicates the start page and the second integer indicates the end page.

Split Inference

class SplitInference(raw_response)

Split inference result.

Parameters:

raw_response (dict[str, Any])

file: InferenceFile

File info for the inference.

id: str

ID of the inference.

job: InferenceJob

Job the inference belongs to.

model: InferenceModel

Model info for the inference.

result: SplitResult

Result of a split inference.

Split Response

class SplitResponse(raw_response)

Represent a split inference response from Mindee V2 API.

Parameters:

raw_response (dict[str, Any])

classmethod get_result_slug()

Getter for the inference slug.

Return type:

str

inference: SplitInference

Inference object for split inference.

property raw_http: str

Displays the result of the raw response as json string.

Split Result

class SplitResult(raw_response)

Split result info.

Parameters:

raw_response (dict[str, Any])

extract_from_input_source(input_source)

Apply all the crops to a file and return a single extracted PDF.

Parameters:

input_source (LocalInputSource) – Input file

Return type:

SplitFiles