docling 1.19.0__tar.gz → 1.19.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.19.0 → docling-1.19.1}/PKG-INFO +11 -11
- {docling-1.19.0 → docling-1.19.1}/README.md +8 -9
- {docling-1.19.0 → docling-1.19.1}/docling/models/tesseract_ocr_cli_model.py +2 -2
- {docling-1.19.0 → docling-1.19.1}/pyproject.toml +7 -3
- {docling-1.19.0 → docling-1.19.1}/LICENSE +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/__init__.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/backend/__init__.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/backend/abstract_backend.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/backend/docling_parse_backend.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/backend/pypdfium2_backend.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/cli/__init__.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/cli/main.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/datamodel/__init__.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/datamodel/base_models.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/datamodel/document.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/datamodel/pipeline_options.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/datamodel/settings.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/document_converter.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/models/__init__.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/models/base_ocr_model.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/models/ds_glm_model.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/models/easyocr_model.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/models/layout_model.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/models/page_assemble_model.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/models/table_structure_model.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/models/tesseract_ocr_model.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/pipeline/__init__.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/pipeline/base_model_pipeline.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/pipeline/standard_model_pipeline.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/utils/__init__.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/utils/export.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/utils/layout_utils.py +0 -0
- {docling-1.19.0 → docling-1.19.1}/docling/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: docling
|
3
|
-
Version: 1.19.
|
3
|
+
Version: 1.19.1
|
4
4
|
Summary: Docling PDF conversion package
|
5
5
|
Home-page: https://github.com/DS4SD/docling
|
6
6
|
License: MIT
|
@@ -22,12 +22,13 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
22
|
Provides-Extra: tesserocr
|
23
23
|
Requires-Dist: certifi (>=2024.7.4)
|
24
24
|
Requires-Dist: deepsearch-glm (>=0.22.0,<0.23.0)
|
25
|
-
Requires-Dist: docling-core (>=1.
|
25
|
+
Requires-Dist: docling-core (>=1.7.1,<2.0.0)
|
26
26
|
Requires-Dist: docling-ibm-models (>=2.0.0,<3.0.0)
|
27
27
|
Requires-Dist: docling-parse (>=1.4.1,<2.0.0)
|
28
28
|
Requires-Dist: easyocr (>=1.7,<2.0)
|
29
29
|
Requires-Dist: filetype (>=1.2.0,<2.0.0)
|
30
30
|
Requires-Dist: huggingface_hub (>=0.23,<1)
|
31
|
+
Requires-Dist: pandas (>=2.1.4,<3.0.0)
|
31
32
|
Requires-Dist: pyarrow (>=16.1.0,<17.0.0)
|
32
33
|
Requires-Dist: pydantic (>=2.0.0,<3.0.0)
|
33
34
|
Requires-Dist: pydantic-settings (>=2.3.0,<3.0.0)
|
@@ -335,15 +336,14 @@ from docling_core.transforms.chunker import HierarchicalChunker
|
|
335
336
|
|
336
337
|
doc = DocumentConverter().convert_single("https://arxiv.org/pdf/2206.01062").output
|
337
338
|
chunks = list(HierarchicalChunker().chunk(doc))
|
338
|
-
|
339
|
-
#
|
340
|
-
#
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
346
|
-
# > ]
|
339
|
+
print(chunks[0])
|
340
|
+
# ChunkWithMetadata(
|
341
|
+
# path='#/main-text/1',
|
342
|
+
# text='DocLayNet: A Large Human-Annotated Dataset [...]',
|
343
|
+
# page=1,
|
344
|
+
# bbox=[107.30, 672.38, 505.19, 709.08],
|
345
|
+
# [...]
|
346
|
+
# )
|
347
347
|
```
|
348
348
|
|
349
349
|
|
@@ -289,15 +289,14 @@ from docling_core.transforms.chunker import HierarchicalChunker
|
|
289
289
|
|
290
290
|
doc = DocumentConverter().convert_single("https://arxiv.org/pdf/2206.01062").output
|
291
291
|
chunks = list(HierarchicalChunker().chunk(doc))
|
292
|
-
|
293
|
-
#
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
#
|
299
|
-
#
|
300
|
-
# > ]
|
292
|
+
print(chunks[0])
|
293
|
+
# ChunkWithMetadata(
|
294
|
+
# path='#/main-text/1',
|
295
|
+
# text='DocLayNet: A Large Human-Annotated Dataset [...]',
|
296
|
+
# page=1,
|
297
|
+
# bbox=[107.30, 672.38, 505.19, 709.08],
|
298
|
+
# [...]
|
299
|
+
# )
|
301
300
|
```
|
302
301
|
|
303
302
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import io
|
2
2
|
import logging
|
3
3
|
import tempfile
|
4
|
-
from subprocess import PIPE, Popen
|
4
|
+
from subprocess import DEVNULL, PIPE, Popen
|
5
5
|
from typing import Iterable, Tuple
|
6
6
|
|
7
7
|
import pandas as pd
|
@@ -81,7 +81,7 @@ class TesseractOcrCliModel(BaseOcrModel):
|
|
81
81
|
cmd += [ifilename, "stdout", "tsv"]
|
82
82
|
_log.info("command: {}".format(" ".join(cmd)))
|
83
83
|
|
84
|
-
proc = Popen(cmd, stdout=PIPE)
|
84
|
+
proc = Popen(cmd, stdout=PIPE, stderr=DEVNULL)
|
85
85
|
output, _ = proc.communicate()
|
86
86
|
|
87
87
|
# _log.info(output)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "docling"
|
3
|
-
version = "1.19.
|
3
|
+
version = "1.19.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"
|
@@ -37,7 +37,7 @@ torchvision = [
|
|
37
37
|
######################
|
38
38
|
python = "^3.10"
|
39
39
|
pydantic = "^2.0.0"
|
40
|
-
docling-core = "^1.
|
40
|
+
docling-core = "^1.7.1"
|
41
41
|
docling-ibm-models = "^2.0.0"
|
42
42
|
deepsearch-glm = "^0.22.0"
|
43
43
|
filetype = "^1.2.0"
|
@@ -53,6 +53,7 @@ rtree = "^1.3.0"
|
|
53
53
|
scipy = "^1.14.1"
|
54
54
|
pyarrow = "^16.1.0"
|
55
55
|
typer = "^0.12.5"
|
56
|
+
pandas = "^2.1.4"
|
56
57
|
|
57
58
|
[tool.poetry.group.dev.dependencies]
|
58
59
|
black = {extras = ["jupyter"], version = "^24.4.2"}
|
@@ -67,7 +68,7 @@ pytest-xdist = "^3.3.1"
|
|
67
68
|
types-requests = "^2.31.0.2"
|
68
69
|
flake8-pyproject = "^1.2.3"
|
69
70
|
pylint = "^2.17.5"
|
70
|
-
pandas-stubs = "^2.
|
71
|
+
pandas-stubs = "^2.1.4.231227"
|
71
72
|
ipykernel = "^6.29.5"
|
72
73
|
ipywidgets = "^8.1.5"
|
73
74
|
nbqa = "^1.9.0"
|
@@ -75,6 +76,9 @@ nbqa = "^1.9.0"
|
|
75
76
|
[tool.poetry.group.examples.dependencies]
|
76
77
|
datasets = "^2.21.0"
|
77
78
|
python-dotenv = "^1.0.1"
|
79
|
+
llama-index-readers-docling = "^0.1.0"
|
80
|
+
llama-index-node-parser-docling = "^0.1.0"
|
81
|
+
llama-index-readers-file = "^0.2.2"
|
78
82
|
llama-index-embeddings-huggingface = "^0.3.1"
|
79
83
|
llama-index-llms-huggingface-api = "^0.2.0"
|
80
84
|
llama-index-vector-stores-milvus = "^0.2.1"
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|