Docling/docling/utils
William Easton 3089cf2d26
perf: Move expensive imports closer to usage (#1863)
* Move expensive imports closer to usage

Signed-off-by: William Easton <bill.easton@elastic.co>

* DCO Remediation Commit for William Easton <bill.easton@elastic.co>

I, William Easton <bill.easton@elastic.co>, hereby add my Signed-off-by to this commit: 8a7412ce5bb131a01bb6403067aeb948c9093b0b

Signed-off-by: William Easton <bill.easton@elastic.co>

* formatting fixes

Signed-off-by: William Easton <bill.easton@elastic.co>

* DCO Remediation Commit for William Easton <bill.easton@elastic.co>

I, William Easton <bill.easton@elastic.co>, hereby add my Signed-off-by to this commit: 8a7412ce5bb131a01bb6403067aeb948c9093b0b
I, William Easton <bill.easton@elastic.co>, hereby add my Signed-off-by to this commit: 963e34325071db5e844841f10c27b396a054a0a1

Signed-off-by: William Easton <bill.easton@elastic.co>

* Fix baseocrmodel test issue

Signed-off-by: William Easton <bill.easton@elastic.co>

---------

Signed-off-by: William Easton <bill.easton@elastic.co>
2025-07-01 22:27:17 +02:00
..
__init__.py Initial commit 2024-07-15 09:42:42 +02:00
accelerator_utils.py perf: Move expensive imports closer to usage (#1863) 2025-07-01 22:27:17 +02:00
api_image_request.py feat: OllamaVlmModel for Granite Vision 3.2 (#1337) 2025-04-10 18:03:04 +02:00
export.py ci: add coverage and ruff (#1383) 2025-04-14 18:01:26 +02:00
glm_utils.py ci: add coverage and ruff (#1383) 2025-04-14 18:01:26 +02:00
layout_postprocessor.py feat: Make Page.parsed_page the only source of truth for text cells, add OCR cells to it (#1745) 2025-06-13 19:01:55 +02:00
locks.py fix: enable locks for threadsafe pdfium (#1052) 2025-03-02 20:06:44 +01:00
model_downloader.py feat: new vlm-models support (#1570) 2025-06-02 17:01:06 +02:00
ocr_utils.py feat(ocr): auto-detect rotated pages in Tesseract (#1167) 2025-05-21 18:12:33 +02:00
orientation.py feat(ocr): auto-detect rotated pages in Tesseract (#1167) 2025-05-21 18:12:33 +02:00
profiling.py feat: Add pipeline timings and toggle visualization, establish debug settings (#183) 2024-10-30 15:04:19 +01:00
utils.py fix: usage of hashlib for FIPS (#1512) 2025-05-02 15:03:29 +02:00
visualization.py feat: Add DoclingParseV4 backend, using high-level docling-parse API (#905) 2025-03-18 10:38:19 +01:00