docling 1.8.3__tar.gz → 1.8.4__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.
Files changed (27) hide show
  1. {docling-1.8.3 → docling-1.8.4}/PKG-INFO +18 -1
  2. {docling-1.8.3 → docling-1.8.4}/README.md +17 -0
  3. {docling-1.8.3 → docling-1.8.4}/docling/datamodel/document.py +2 -0
  4. {docling-1.8.3 → docling-1.8.4}/pyproject.toml +1 -1
  5. {docling-1.8.3 → docling-1.8.4}/LICENSE +0 -0
  6. {docling-1.8.3 → docling-1.8.4}/docling/__init__.py +0 -0
  7. {docling-1.8.3 → docling-1.8.4}/docling/backend/__init__.py +0 -0
  8. {docling-1.8.3 → docling-1.8.4}/docling/backend/abstract_backend.py +0 -0
  9. {docling-1.8.3 → docling-1.8.4}/docling/backend/docling_parse_backend.py +0 -0
  10. {docling-1.8.3 → docling-1.8.4}/docling/backend/pypdfium2_backend.py +0 -0
  11. {docling-1.8.3 → docling-1.8.4}/docling/datamodel/__init__.py +0 -0
  12. {docling-1.8.3 → docling-1.8.4}/docling/datamodel/base_models.py +0 -0
  13. {docling-1.8.3 → docling-1.8.4}/docling/datamodel/settings.py +0 -0
  14. {docling-1.8.3 → docling-1.8.4}/docling/document_converter.py +0 -0
  15. {docling-1.8.3 → docling-1.8.4}/docling/models/__init__.py +0 -0
  16. {docling-1.8.3 → docling-1.8.4}/docling/models/base_ocr_model.py +0 -0
  17. {docling-1.8.3 → docling-1.8.4}/docling/models/ds_glm_model.py +0 -0
  18. {docling-1.8.3 → docling-1.8.4}/docling/models/easyocr_model.py +0 -0
  19. {docling-1.8.3 → docling-1.8.4}/docling/models/layout_model.py +0 -0
  20. {docling-1.8.3 → docling-1.8.4}/docling/models/page_assemble_model.py +0 -0
  21. {docling-1.8.3 → docling-1.8.4}/docling/models/table_structure_model.py +0 -0
  22. {docling-1.8.3 → docling-1.8.4}/docling/pipeline/__init__.py +0 -0
  23. {docling-1.8.3 → docling-1.8.4}/docling/pipeline/base_model_pipeline.py +0 -0
  24. {docling-1.8.3 → docling-1.8.4}/docling/pipeline/standard_model_pipeline.py +0 -0
  25. {docling-1.8.3 → docling-1.8.4}/docling/utils/__init__.py +0 -0
  26. {docling-1.8.3 → docling-1.8.4}/docling/utils/layout_utils.py +0 -0
  27. {docling-1.8.3 → docling-1.8.4}/docling/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docling
3
- Version: 1.8.3
3
+ Version: 1.8.4
4
4
  Summary: Docling PDF conversion package
5
5
  Home-page: https://github.com/DS4SD/docling
6
6
  License: MIT
@@ -72,6 +72,23 @@ pip install docling
72
72
  > [!NOTE]
73
73
  > Works on macOS and Linux environments. Windows platforms are currently not tested.
74
74
 
75
+
76
+ ### Use alternative PyTorch distributions
77
+
78
+ The Docling models depend on the [PyTorch](https://pytorch.org/) library.
79
+ Depending on your architecture, you might want to use a different distribution of `torch`.
80
+ For example, you might want support for different accelerator or for a cpu-only version.
81
+ All the different ways for installing `torch` are listed on their website <https://pytorch.org/>.
82
+
83
+ One common situation is the installation on Linux systems with cpu-only support.
84
+ In this case, we suggest the installation of Docling with the following options
85
+
86
+ ```bash
87
+ # Example for installing on the Linux cpu-only version
88
+ pip install docling --extra-index-url https://download.pytorch.org/whl/cpu
89
+ ```
90
+
91
+
75
92
  ### Development setup
76
93
 
77
94
  To develop for Docling, you need Python 3.10 / 3.11 / 3.12 and Poetry. You can then install from your local clone's root dir:
@@ -34,6 +34,23 @@ pip install docling
34
34
  > [!NOTE]
35
35
  > Works on macOS and Linux environments. Windows platforms are currently not tested.
36
36
 
37
+
38
+ ### Use alternative PyTorch distributions
39
+
40
+ The Docling models depend on the [PyTorch](https://pytorch.org/) library.
41
+ Depending on your architecture, you might want to use a different distribution of `torch`.
42
+ For example, you might want support for different accelerator or for a cpu-only version.
43
+ All the different ways for installing `torch` are listed on their website <https://pytorch.org/>.
44
+
45
+ One common situation is the installation on Linux systems with cpu-only support.
46
+ In this case, we suggest the installation of Docling with the following options
47
+
48
+ ```bash
49
+ # Example for installing on the Linux cpu-only version
50
+ pip install docling --extra-index-url https://download.pytorch.org/whl/cpu
51
+ ```
52
+
53
+
37
54
  ### Development setup
38
55
 
39
56
  To develop for Docling, you need Python 3.10 / 3.11 / 3.12 and Poetry. You can then install from your local clone's root dir:
@@ -222,6 +222,8 @@ class ConvertedDocument(BaseModel):
222
222
  celltype = "col_header"
223
223
  elif cell.row_header:
224
224
  celltype = "row_header"
225
+ elif cell.row_section:
226
+ celltype = "row_section"
225
227
 
226
228
  def make_spans(cell):
227
229
  for rspan in range(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "docling"
3
- version = "1.8.3" # DO NOT EDIT, updated automatically
3
+ version = "1.8.4" # 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