sparrow-parse 0.2.1__tar.gz → 0.2.3__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.
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/PKG-INFO +5 -4
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/README.md +1 -1
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/pyproject.toml +4 -3
- sparrow_parse-0.2.3/sparrow_parse/__init__.py +1 -0
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/extractor/unstructured_processor.py +2 -2
- sparrow_parse-0.2.1/sparrow_parse/__init__.py +0 -1
- sparrow_parse-0.2.1/sparrow_parse/extractor/__pycache__/__init__.cpython-310.pyc +0 -0
- sparrow_parse-0.2.1/sparrow_parse/extractor/__pycache__/extractor_helper.cpython-310.pyc +0 -0
- sparrow_parse-0.2.1/sparrow_parse/extractor/__pycache__/html_extractor.cpython-310.pyc +0 -0
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/__main__.py +0 -0
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/data/invoice_1_table.txt +0 -0
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/extractor/__init__.py +0 -0
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/extractor/extractor_helper.py +0 -0
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/extractor/html_extractor.py +0 -0
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/extractor/markdown_processor.py +0 -0
- {sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/temp.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sparrow-parse
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.3
|
4
4
|
Summary: Sparrow Parse is a Python package for parsing and extracting information from documents.
|
5
5
|
Home-page: https://github.com/katanaml/sparrow/tree/main/sparrow-data/parse
|
6
6
|
License: GPL-3.0
|
@@ -15,13 +15,14 @@ Classifier: Programming Language :: Python :: 3.9
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
17
17
|
Classifier: Topic :: Software Development
|
18
|
+
Requires-Dist: numpy (==1.26.4)
|
18
19
|
Requires-Dist: pymupdf4llm (==0.0.5)
|
19
20
|
Requires-Dist: rich (>=13.7.1,<14.0.0)
|
20
21
|
Requires-Dist: sentence-transformers (==3.0.1)
|
21
22
|
Requires-Dist: torch (==2.2.2)
|
22
23
|
Requires-Dist: transformers (==4.41.2)
|
23
|
-
Requires-Dist: unstructured-inference (==0.7.
|
24
|
-
Requires-Dist: unstructured[all-docs] (==0.14.
|
24
|
+
Requires-Dist: unstructured-inference (==0.7.35)
|
25
|
+
Requires-Dist: unstructured[all-docs] (==0.14.6)
|
25
26
|
Project-URL: Repository, https://github.com/katanaml/sparrow
|
26
27
|
Description-Content-Type: text/markdown
|
27
28
|
|
@@ -63,7 +64,7 @@ Example:
|
|
63
64
|
|
64
65
|
*model_name* - `yolox`
|
65
66
|
|
66
|
-
*options* - `['tables', '
|
67
|
+
*options* - `['tables', 'unstructured']`
|
67
68
|
|
68
69
|
*local* - `True`
|
69
70
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "sparrow-parse"
|
3
|
-
version = "0.2.
|
3
|
+
version = "0.2.3"
|
4
4
|
description = "Sparrow Parse is a Python package for parsing and extracting information from documents."
|
5
5
|
authors = ["Andrej Baranovskij <andrejus.baranovskis@gmail.com>"]
|
6
6
|
license = "GPL-3.0"
|
@@ -22,12 +22,13 @@ include = [
|
|
22
22
|
[tool.poetry.dependencies]
|
23
23
|
python = ">=3.9,<3.12"
|
24
24
|
torch = {version = "2.2.2", source = "pypi"}
|
25
|
-
unstructured = {version = "0.14.
|
26
|
-
unstructured-inference = "0.7.
|
25
|
+
unstructured = {version = "0.14.6", extras = ["all-docs"]}
|
26
|
+
unstructured-inference = "0.7.35"
|
27
27
|
rich = "^13.7.1"
|
28
28
|
pymupdf4llm = "0.0.5"
|
29
29
|
transformers = "4.41.2"
|
30
30
|
sentence-transformers = "3.0.1"
|
31
|
+
numpy = "1.26.4"
|
31
32
|
|
32
33
|
|
33
34
|
[tool.poetry.scripts]
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.2.3'
|
{sparrow_parse-0.2.1 → sparrow_parse-0.2.3}/sparrow_parse/extractor/unstructured_processor.py
RENAMED
@@ -98,7 +98,7 @@ class UnstructuredProcessor(object):
|
|
98
98
|
if options is None:
|
99
99
|
content = self.process_json_file(file_path)
|
100
100
|
|
101
|
-
if options and "tables" in options and "
|
101
|
+
if options and "tables" in options and "unstructured" in options:
|
102
102
|
content = self.process_json_file(file_path, "form")
|
103
103
|
|
104
104
|
table_content = self.process_json_file(file_path, "table")
|
@@ -173,7 +173,7 @@ if __name__ == "__main__":
|
|
173
173
|
# '/Users/andrejb/infra/shared/katana-git/sparrow/sparrow-ml/llm/data/invoice_1.pdf',
|
174
174
|
# 'hi_res',
|
175
175
|
# 'yolox',
|
176
|
-
# ['tables', '
|
176
|
+
# ['tables', 'unstructured'],
|
177
177
|
# True,
|
178
178
|
# True)
|
179
179
|
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '0.2.1'
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|