docling 1.8.0__tar.gz → 1.8.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {docling-1.8.0 → docling-1.8.1}/PKG-INFO +1 -1
- {docling-1.8.0 → docling-1.8.1}/docling/document_converter.py +3 -4
- {docling-1.8.0 → docling-1.8.1}/pyproject.toml +1 -1
- {docling-1.8.0 → docling-1.8.1}/LICENSE +0 -0
- {docling-1.8.0 → docling-1.8.1}/README.md +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/__init__.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/backend/__init__.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/backend/abstract_backend.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/backend/docling_parse_backend.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/backend/pypdfium2_backend.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/datamodel/__init__.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/datamodel/base_models.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/datamodel/document.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/datamodel/settings.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/models/__init__.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/models/base_ocr_model.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/models/ds_glm_model.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/models/easyocr_model.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/models/layout_model.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/models/page_assemble_model.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/models/table_structure_model.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/pipeline/__init__.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/pipeline/base_model_pipeline.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/pipeline/standard_model_pipeline.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/utils/__init__.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/utils/layout_utils.py +0 -0
- {docling-1.8.0 → docling-1.8.1}/docling/utils/utils.py +0 -0
@@ -88,7 +88,7 @@ class DocumentConverter:
|
|
88
88
|
# Note: Pdfium backend is not thread-safe, thread pool usage was disabled.
|
89
89
|
yield from map(self.process_document, input_batch)
|
90
90
|
|
91
|
-
def convert_single(self, source: Path | AnyHttpUrl | str) ->
|
91
|
+
def convert_single(self, source: Path | AnyHttpUrl | str) -> ConvertedDocument:
|
92
92
|
"""Convert a single document.
|
93
93
|
|
94
94
|
Args:
|
@@ -133,11 +133,10 @@ class DocumentConverter:
|
|
133
133
|
converted_doc: ConvertedDocument = next(converted_docs_iter)
|
134
134
|
if converted_doc.status not in {
|
135
135
|
ConversionStatus.SUCCESS,
|
136
|
-
ConversionStatus.
|
136
|
+
ConversionStatus.PARTIAL_SUCCESS,
|
137
137
|
}:
|
138
138
|
raise RuntimeError(f"Conversion failed with status: {converted_doc.status}")
|
139
|
-
|
140
|
-
return doc
|
139
|
+
return converted_doc
|
141
140
|
|
142
141
|
def process_document(self, in_doc: InputDocument) -> ConvertedDocument:
|
143
142
|
start_doc_time = time.time()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "docling"
|
3
|
-
version = "1.8.
|
3
|
+
version = "1.8.1" # DO NOT EDIT, updated automatically
|
4
4
|
description = "Docling PDF conversion package"
|
5
5
|
authors = ["Christoph Auer <cau@zurich.ibm.com>", "Michele Dolfi <dol@zurich.ibm.com>", "Maxim Lysak <mly@zurich.ibm.com>", "Nikos Livathinos <nli@zurich.ibm.com>", "Ahmed Nassar <ahn@zurich.ibm.com>", "Peter Staar <taa@zurich.ibm.com>"]
|
6
6
|
license = "MIT"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|