sparrow-parse 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl
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/__init__.py +1 -1
- sparrow_parse/extractor/html_extractor.py +6 -3
- {sparrow_parse-0.2.0.dist-info → sparrow_parse-0.2.1.dist-info}/METADATA +1 -1
- {sparrow_parse-0.2.0.dist-info → sparrow_parse-0.2.1.dist-info}/RECORD +6 -6
- {sparrow_parse-0.2.0.dist-info → sparrow_parse-0.2.1.dist-info}/WHEEL +0 -0
- {sparrow_parse-0.2.0.dist-info → sparrow_parse-0.2.1.dist-info}/entry_points.txt +0 -0
sparrow_parse/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '0.2.
|
1
|
+
__version__ = '0.2.1'
|
@@ -3,8 +3,8 @@ from sentence_transformers import SentenceTransformer, util
|
|
3
3
|
from bs4 import BeautifulSoup
|
4
4
|
import json
|
5
5
|
from rich.progress import Progress, SpinnerColumn, TextColumn
|
6
|
-
from extractor_helper import merge_html_table_headers
|
7
|
-
from extractor_helper import clean_html_table_header_names
|
6
|
+
from .extractor_helper import merge_html_table_headers
|
7
|
+
from .extractor_helper import clean_html_table_header_names
|
8
8
|
import re
|
9
9
|
|
10
10
|
|
@@ -221,7 +221,10 @@ class HTMLExtractor(object):
|
|
221
221
|
|
222
222
|
|
223
223
|
if __name__ == "__main__":
|
224
|
-
#
|
224
|
+
# to run for debugging, navigate to sparrow_parse and run the following command:
|
225
|
+
# python -m extractor.html_extractor
|
226
|
+
|
227
|
+
# with open('data/invoice_1_table.txt', 'r') as file:
|
225
228
|
# file_content = file.read()
|
226
229
|
#
|
227
230
|
# file_content = file_content.strip()[1:-1].strip()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sparrow-parse
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.1
|
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
|
@@ -1,13 +1,13 @@
|
|
1
|
-
sparrow_parse/__init__.py,sha256=
|
1
|
+
sparrow_parse/__init__.py,sha256=nx8uT9NOkkA2KzjU9Q36cvZlTi-7bCHVPIkXCQkwZf8,21
|
2
2
|
sparrow_parse/__main__.py,sha256=Xs1bpJV0n08KWOoQE34FBYn6EBXZA9HIYJKrE4ZdG78,153
|
3
3
|
sparrow_parse/data/invoice_1_table.txt,sha256=dsWEASxlVNidpTCQDowCM7SjaUzSqwx7DuydTfaQ7xI,1115
|
4
4
|
sparrow_parse/extractor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
sparrow_parse/extractor/extractor_helper.py,sha256=fvA7iuGdpW_WFc4jkALBzQbACqlE5x_K9ScW-E6RCoY,13357
|
6
|
-
sparrow_parse/extractor/html_extractor.py,sha256=
|
6
|
+
sparrow_parse/extractor/html_extractor.py,sha256=V_ApbQzS3LmyYM8G0adQy73FqvQob5TGZgRMbOviA9M,9507
|
7
7
|
sparrow_parse/extractor/markdown_processor.py,sha256=dC2WUdA-v2psh7oytruftxYkXdQi72FoEYxF30ROuO0,4506
|
8
8
|
sparrow_parse/extractor/unstructured_processor.py,sha256=7eFIZ6VeEkIslcJyibyix1qFPHGtIwnvNxdRItGz7V8,6755
|
9
9
|
sparrow_parse/temp.py,sha256=xiRDPkv_fsM9xCcW29TU0LushgYjMaN9_Cwur6RvY1A,859
|
10
|
-
sparrow_parse-0.2.
|
11
|
-
sparrow_parse-0.2.
|
12
|
-
sparrow_parse-0.2.
|
13
|
-
sparrow_parse-0.2.
|
10
|
+
sparrow_parse-0.2.1.dist-info/METADATA,sha256=IoN64-UiSxartCGrKq1R7mrhGVDzN5fqkEei_i86heU,5582
|
11
|
+
sparrow_parse-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
sparrow_parse-0.2.1.dist-info/entry_points.txt,sha256=H507qotwq3VX4lv5pY9MZYtupKNE1RRb8gEQucPiGi0,52
|
13
|
+
sparrow_parse-0.2.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|