docling 2.25.1__py3-none-any.whl → 2.25.2__py3-none-any.whl
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/utils/layout_postprocessor.py +2 -1
- {docling-2.25.1.dist-info → docling-2.25.2.dist-info}/METADATA +2 -2
- {docling-2.25.1.dist-info → docling-2.25.2.dist-info}/RECORD +6 -6
- {docling-2.25.1.dist-info → docling-2.25.2.dist-info}/LICENSE +0 -0
- {docling-2.25.1.dist-info → docling-2.25.2.dist-info}/WHEEL +0 -0
- {docling-2.25.1.dist-info → docling-2.25.2.dist-info}/entry_points.txt +0 -0
@@ -203,6 +203,7 @@ class LayoutPostprocessor:
|
|
203
203
|
"""Initialize processor with cells and spatial indices."""
|
204
204
|
self.cells = cells
|
205
205
|
self.page_size = page_size
|
206
|
+
self.all_clusters = clusters
|
206
207
|
self.regular_clusters = [
|
207
208
|
c for c in clusters if c.label not in self.SPECIAL_TYPES
|
208
209
|
]
|
@@ -267,7 +268,7 @@ class LayoutPostprocessor:
|
|
267
268
|
# Handle orphaned cells
|
268
269
|
unassigned = self._find_unassigned_cells(clusters)
|
269
270
|
if unassigned:
|
270
|
-
next_id = max((c.id for c in
|
271
|
+
next_id = max((c.id for c in self.all_clusters), default=0) + 1
|
271
272
|
orphan_clusters = []
|
272
273
|
for i, cell in enumerate(unassigned):
|
273
274
|
conf = 1.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: docling
|
3
|
-
Version: 2.25.
|
3
|
+
Version: 2.25.2
|
4
4
|
Summary: SDK and CLI for parsing PDF, DOCX, HTML, and more, to a unified document representation for powering downstream workflows such as gen AI applications.
|
5
5
|
Home-page: https://github.com/DS4SD/docling
|
6
6
|
License: MIT
|
@@ -185,7 +185,7 @@ For individual model usage, please refer to the model licenses found in the orig
|
|
185
185
|
|
186
186
|
Docling has been brought to you by IBM.
|
187
187
|
|
188
|
-
[supported_formats]: https://ds4sd.github.io/docling/supported_formats/
|
188
|
+
[supported_formats]: https://ds4sd.github.io/docling/usage/supported_formats/
|
189
189
|
[docling_document]: https://ds4sd.github.io/docling/concepts/docling_document/
|
190
190
|
[integrations]: https://ds4sd.github.io/docling/integrations/
|
191
191
|
|
@@ -58,15 +58,15 @@ docling/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
58
|
docling/utils/accelerator_utils.py,sha256=ONNRrC8fH-8E93WUCNhfOq1t7WrQ1T7-YsmExTOY5f0,2292
|
59
59
|
docling/utils/export.py,sha256=KyGF1BVDHPFfHVXZc8vegsWlFfOgGPP2YckWpTadyI8,4694
|
60
60
|
docling/utils/glm_utils.py,sha256=W4JRoP0xQ6SJmhhIoAfcKxm5dr1CFvLHp8pqI1kdhxs,12250
|
61
|
-
docling/utils/layout_postprocessor.py,sha256=
|
61
|
+
docling/utils/layout_postprocessor.py,sha256=kdIk5TpAEXvsQUvkdALBDnAbjc4I_j8s8w6GEvbu4f0,24304
|
62
62
|
docling/utils/locks.py,sha256=RzqQtD5UispgV71pGN_nU6GYfeN11BN0Sh_Dq9ycqGo,52
|
63
63
|
docling/utils/model_downloader.py,sha256=sxAQvjiIu9m2Ur5Ot5C5SATmgWJAHi0xSjzxj8QXYJk,3213
|
64
64
|
docling/utils/ocr_utils.py,sha256=F7iOOjqolUcImUzir4qjDQd4QWSO3s6JC4WRn3U7uY4,263
|
65
65
|
docling/utils/profiling.py,sha256=YaMGoB9MMZpagF9mb5ndoHj8Lpb9aIdb7El-Pl7IcFs,1753
|
66
66
|
docling/utils/utils.py,sha256=0ozCk7zUkYzxRVmYoIB2zA1lqjQOuaQzxfGuf1wmKW4,1866
|
67
67
|
docling/utils/visualization.py,sha256=cmbIroPQXPmJdFrNIfpC26WpijBwx05qmpu3QhiG1EI,2850
|
68
|
-
docling-2.25.
|
69
|
-
docling-2.25.
|
70
|
-
docling-2.25.
|
71
|
-
docling-2.25.
|
72
|
-
docling-2.25.
|
68
|
+
docling-2.25.2.dist-info/LICENSE,sha256=mBb7ErEcM8VS9OhiGHnQ2kk75HwPhr54W1Oiz3965MY,1088
|
69
|
+
docling-2.25.2.dist-info/METADATA,sha256=NsR1pyqk-Q5G5pHrpaLf6TCQEE-r-hGrEB9Hpqdgykk,8803
|
70
|
+
docling-2.25.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
71
|
+
docling-2.25.2.dist-info/entry_points.txt,sha256=cFrINXsORijdm2EWJzf1m9_rDxH9G9W1fP385-9atY4,84
|
72
|
+
docling-2.25.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|