docling 1.16.0__py3-none-any.whl → 1.16.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docling
3
- Version: 1.16.0
3
+ Version: 1.16.1
4
4
  Summary: Docling PDF conversion package
5
5
  Home-page: https://github.com/DS4SD/docling
6
6
  License: MIT
@@ -22,7 +22,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
22
  Requires-Dist: certifi (>=2024.7.4)
23
23
  Requires-Dist: deepsearch-glm (>=0.21.1,<0.22.0)
24
24
  Requires-Dist: docling-core (>=1.6.2,<2.0.0)
25
- Requires-Dist: docling-ibm-models (>=1.2.0,<2.0.0)
25
+ Requires-Dist: docling-ibm-models (>=1.3.1,<2.0.0)
26
26
  Requires-Dist: docling-parse (>=1.2.0,<2.0.0)
27
27
  Requires-Dist: easyocr (>=1.7,<2.0)
28
28
  Requires-Dist: filetype (>=1.2.0,<2.0.0)
@@ -251,6 +251,28 @@ results = doc_converter.convert(conv_input)
251
251
 
252
252
  You can limit the CPU threads used by Docling by setting the environment variable `OMP_NUM_THREADS` accordingly. The default setting is using 4 CPU threads.
253
253
 
254
+ ### Chunking
255
+
256
+ You can perform a hierarchy-aware chunking of a Docling document as follows:
257
+
258
+ ```python
259
+ from docling.document_converter import DocumentConverter
260
+ from docling_core.transforms.chunker import HierarchicalChunker
261
+
262
+ doc = DocumentConverter().convert_single("https://arxiv.org/pdf/2206.01062").output
263
+ chunks = list(HierarchicalChunker().chunk(doc))
264
+ # > [
265
+ # > ChunkWithMetadata(
266
+ # > path='$.main-text[0]',
267
+ # > text='DocLayNet: A Large Human-Annotated Dataset [...]',
268
+ # > page=1,
269
+ # > bbox=[107.30, 672.38, 505.19, 709.08]
270
+ # > ),
271
+ # > [...]
272
+ # > ]
273
+ ```
274
+
275
+
254
276
  ## Technical report
255
277
 
256
278
  For more details on Docling's inner workings, check out the [Docling Technical Report](https://arxiv.org/abs/2408.09869).
@@ -25,8 +25,8 @@ docling/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  docling/utils/export.py,sha256=bKLdbeUcR-rQsGPV1IqJkCHKMCv7X2QOHyxmjNuH3HE,4655
26
26
  docling/utils/layout_utils.py,sha256=FOFbL0hKzUoWXdZaeUvEtFqKv0IkPifIr4sdGW4suKs,31804
27
27
  docling/utils/utils.py,sha256=llhXSbIDNZ1MHOwBEfLHBAoJIAYI7QlPIonlI1jLUJ0,1208
28
- docling-1.16.0.dist-info/LICENSE,sha256=mBb7ErEcM8VS9OhiGHnQ2kk75HwPhr54W1Oiz3965MY,1088
29
- docling-1.16.0.dist-info/METADATA,sha256=AESUBe1Ea2pC0vJvvNwLW7l_z26k3iriJiicLFU3U7E,13308
30
- docling-1.16.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
31
- docling-1.16.0.dist-info/entry_points.txt,sha256=VOSzV77znM52dz5ysaDuJ0ijl1cnfrh1ZPg8od5OcTs,48
32
- docling-1.16.0.dist-info/RECORD,,
28
+ docling-1.16.1.dist-info/LICENSE,sha256=mBb7ErEcM8VS9OhiGHnQ2kk75HwPhr54W1Oiz3965MY,1088
29
+ docling-1.16.1.dist-info/METADATA,sha256=vWzWfsormCgPWMFxCeQ0nMwPnbn0T3tc7yTLsiNz95s,13908
30
+ docling-1.16.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
31
+ docling-1.16.1.dist-info/entry_points.txt,sha256=VOSzV77znM52dz5ysaDuJ0ijl1cnfrh1ZPg8od5OcTs,48
32
+ docling-1.16.1.dist-info/RECORD,,