cells2table 0.2.0__tar.gz → 0.2.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.
- {cells2table-0.2.0 → cells2table-0.2.1}/PKG-INFO +2 -2
- {cells2table-0.2.0 → cells2table-0.2.1}/README.md +1 -1
- {cells2table-0.2.0 → cells2table-0.2.1}/pyproject.toml +2 -2
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/docling.py +0 -5
- {cells2table-0.2.0 → cells2table-0.2.1}/LICENSE +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/__init__.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/PaddlePaddle/__init__.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/PaddlePaddle/cell_detection.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/PaddlePaddle/pipeline.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/PaddlePaddle/table_classification.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/__init__.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/utils/download.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/utils/runtimes/__init__.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/utils/runtimes/onnx.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/utils/tasks/__init__.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/utils/tasks/base.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/utils/tasks/classification.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/utils/tasks/detection.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/py.typed +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/utils/__init__.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/utils/table.py +0 -0
- {cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/utils/visualize.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cells2table
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Table image parsing with cell detection models
|
|
5
5
|
Keywords: docling,plugin
|
|
6
6
|
Author: jspast
|
|
@@ -43,7 +43,7 @@ Using [ONNX weights](https://huggingface.co/jspast/paddlepaddle-table-models-onn
|
|
|
43
43
|
With [uv](https://docs.astral.sh/uv/), add to your project with:
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
|
-
uv add
|
|
46
|
+
uv add cells2table
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
ONNX models need a [ONNX Runtime](https://onnxruntime.ai/getting-started) installed to run. You can install one on your own or use one of the optionals already configured.
|
|
@@ -16,7 +16,7 @@ Using [ONNX weights](https://huggingface.co/jspast/paddlepaddle-table-models-onn
|
|
|
16
16
|
With [uv](https://docs.astral.sh/uv/), add to your project with:
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
|
-
uv add
|
|
19
|
+
uv add cells2table
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
ONNX models need a [ONNX Runtime](https://onnxruntime.ai/getting-started) installed to run. You can install one on your own or use one of the optionals already configured.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cells2table"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.1"
|
|
4
4
|
description = "Table image parsing with cell detection models"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -25,7 +25,7 @@ Homepage = "https://github.com/jspast/cells2table"
|
|
|
25
25
|
Issues = "https://github.com/jspast/cells2table/issues"
|
|
26
26
|
|
|
27
27
|
[project.scripts]
|
|
28
|
-
cells2table = "
|
|
28
|
+
cells2table = "cli:main"
|
|
29
29
|
|
|
30
30
|
[project.entry-points.docling]
|
|
31
31
|
cells2table = "cells2table.docling"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import copy
|
|
2
|
-
import logging
|
|
3
2
|
from collections.abc import Iterable
|
|
4
3
|
from pathlib import Path
|
|
5
4
|
from typing import ClassVar, Literal, Optional, Sequence, Type
|
|
@@ -21,12 +20,8 @@ from PIL import ImageDraw
|
|
|
21
20
|
# from docling.utils.accelerator_utils import decide_device
|
|
22
21
|
from .models import DefaultPipeline
|
|
23
22
|
|
|
24
|
-
logger = logging.getLogger(__name__)
|
|
25
|
-
|
|
26
23
|
|
|
27
24
|
def get_tokens(page: Page, table_cluster: Cluster, scale: float) -> list[str]:
|
|
28
|
-
"""Docling logic for token extraction."""
|
|
29
|
-
|
|
30
25
|
# Check if word-level cells are available from backend:
|
|
31
26
|
sp = page._backend.get_segmented_page() if page._backend else None
|
|
32
27
|
if sp is not None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/PaddlePaddle/cell_detection.py
RENAMED
|
File without changes
|
|
File without changes
|
{cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/PaddlePaddle/table_classification.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cells2table-0.2.0 → cells2table-0.2.1}/src/cells2table/models/utils/tasks/classification.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|