indexify 0.0.41__tar.gz → 0.0.43__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.
- {indexify-0.0.41 → indexify-0.0.43}/PKG-INFO +1 -1
- {indexify-0.0.41 → indexify-0.0.43}/indexify/extractor_sdk/extractor.py +2 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/extractors/pdf_parser.py +1 -3
- {indexify-0.0.41 → indexify-0.0.43}/pyproject.toml +1 -1
- {indexify-0.0.41 → indexify-0.0.43}/LICENSE.txt +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/README.md +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/__init__.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/base_client.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/client.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/data_loaders/__init__.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/data_loaders/local_directory_loader.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/data_loaders/url_loader.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/error.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/exceptions.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/extraction_policy.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/extractor_sdk/__init__.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/extractor_sdk/data.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/extractor_sdk/utils.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/extractors/__init__.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/extractors/embedding.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/graph.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/local_runner.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/runner.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/settings.py +0 -0
- {indexify-0.0.41 → indexify-0.0.43}/indexify/utils.py +0 -0
@@ -2,7 +2,6 @@ import tempfile
|
|
2
2
|
from enum import Enum
|
3
3
|
from typing import List, Optional
|
4
4
|
|
5
|
-
import deepdoctection as dd
|
6
5
|
from pydantic import BaseModel
|
7
6
|
|
8
7
|
|
@@ -45,6 +44,7 @@ class PDFParser:
|
|
45
44
|
self._data = data
|
46
45
|
|
47
46
|
def parse(self) -> List[Page]:
|
47
|
+
import deepdoctection as dd
|
48
48
|
analyzer = dd.get_dd_analyzer()
|
49
49
|
parsed_pages = []
|
50
50
|
with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as f:
|
@@ -68,7 +68,6 @@ class PDFParser:
|
|
68
68
|
)
|
69
69
|
)
|
70
70
|
figures = parsed_page.get_annotation(category_names=dd.LayoutType.FIGURE)
|
71
|
-
print(len(figures))
|
72
71
|
for figure in figures:
|
73
72
|
image_bytes = dd.viz_handler.encode(figure.viz())
|
74
73
|
fragments.append(
|
@@ -80,7 +79,6 @@ class PDFParser:
|
|
80
79
|
)
|
81
80
|
|
82
81
|
tables = parsed_page.get_annotation(category_names=dd.LayoutType.TABLE)
|
83
|
-
print(len(tables))
|
84
82
|
for table in tables:
|
85
83
|
fragments.append(
|
86
84
|
PageFragment(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "indexify"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.43"
|
4
4
|
description = "Python Client for Indexify"
|
5
5
|
authors = ["Diptanu Gon Choudhury <diptanuc@gmail.com>", "Lucas Jackson <lucas@tensorlake.ai>", "Vijay Parthasarathy <vijay2win@gmail.com>"]
|
6
6
|
license = "Apache 2.0"
|
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
|