docling 1.16.0__py3-none-any.whl → 1.17.0__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.17.0
4
4
  Summary: Docling PDF conversion package
5
5
  Home-page: https://github.com/DS4SD/docling
6
6
  License: MIT
@@ -20,10 +20,10 @@ Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
22
  Requires-Dist: certifi (>=2024.7.4)
23
- Requires-Dist: deepsearch-glm (>=0.21.1,<0.22.0)
23
+ Requires-Dist: deepsearch-glm (>=0.22.0,<0.23.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)
26
- Requires-Dist: docling-parse (>=1.2.0,<2.0.0)
25
+ Requires-Dist: docling-ibm-models (>=1.3.1,<2.0.0)
26
+ Requires-Dist: docling-parse (>=1.4.1,<2.0.0)
27
27
  Requires-Dist: easyocr (>=1.7,<2.0)
28
28
  Requires-Dist: filetype (>=1.2.0,<2.0.0)
29
29
  Requires-Dist: huggingface_hub (>=0.23,<1)
@@ -77,8 +77,7 @@ To use Docling, simply install `docling` from your package manager, e.g. pip:
77
77
  pip install docling
78
78
  ```
79
79
 
80
- > [!NOTE]
81
- > Works on macOS and Linux environments. Windows platforms are currently not tested.
80
+ Works on macOS, Linux and Windows environments. Both x86_64 and arm64 architectures.
82
81
 
83
82
  <details>
84
83
  <summary><b>Alternative PyTorch distributions</b></summary>
@@ -251,6 +250,28 @@ results = doc_converter.convert(conv_input)
251
250
 
252
251
  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
252
 
253
+ ### Chunking
254
+
255
+ You can perform a hierarchy-aware chunking of a Docling document as follows:
256
+
257
+ ```python
258
+ from docling.document_converter import DocumentConverter
259
+ from docling_core.transforms.chunker import HierarchicalChunker
260
+
261
+ doc = DocumentConverter().convert_single("https://arxiv.org/pdf/2206.01062").output
262
+ chunks = list(HierarchicalChunker().chunk(doc))
263
+ # > [
264
+ # > ChunkWithMetadata(
265
+ # > path='$.main-text[0]',
266
+ # > text='DocLayNet: A Large Human-Annotated Dataset [...]',
267
+ # > page=1,
268
+ # > bbox=[107.30, 672.38, 505.19, 709.08]
269
+ # > ),
270
+ # > [...]
271
+ # > ]
272
+ ```
273
+
274
+
254
275
  ## Technical report
255
276
 
256
277
  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.17.0.dist-info/LICENSE,sha256=mBb7ErEcM8VS9OhiGHnQ2kk75HwPhr54W1Oiz3965MY,1088
29
+ docling-1.17.0.dist-info/METADATA,sha256=2xiDkgCnM41dPg8At6psz-rqtmQF50qLsXXhhzDAODk,13898
30
+ docling-1.17.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
31
+ docling-1.17.0.dist-info/entry_points.txt,sha256=VOSzV77znM52dz5ysaDuJ0ijl1cnfrh1ZPg8od5OcTs,48
32
+ docling-1.17.0.dist-info/RECORD,,