h-rots 0.1.0__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.
- h_rots/__init__.py +21 -0
- h_rots/__main__.py +4 -0
- h_rots/_core.py +1980 -0
- h_rots/cli.py +37 -0
- h_rots/decoder.py +12 -0
- h_rots/parser.py +17 -0
- h_rots/serializer.py +35 -0
- h_rots-0.1.0.dist-info/METADATA +130 -0
- h_rots-0.1.0.dist-info/RECORD +13 -0
- h_rots-0.1.0.dist-info/WHEEL +5 -0
- h_rots-0.1.0.dist-info/entry_points.txt +2 -0
- h_rots-0.1.0.dist-info/licenses/LICENSE +202 -0
- h_rots-0.1.0.dist-info/top_level.txt +1 -0
h_rots/__init__.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""H-ROTS: deterministic HTML table preprocessing for RAG."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import version
|
|
4
|
+
|
|
5
|
+
from .parser import parse, process_html_table_be
|
|
6
|
+
from .serializer import (
|
|
7
|
+
serialize, convert, json_to_multiline_text, rows_to_compact_text,
|
|
8
|
+
html_table_to_multiline_text, html_table_to_compact_text,
|
|
9
|
+
html_table_to_markdown_text, html_tables_to_markdown_text,
|
|
10
|
+
)
|
|
11
|
+
from .decoder import decode, compact_text_to_rows
|
|
12
|
+
|
|
13
|
+
__version__ = version("h-rots")
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"parse", "serialize", "convert", "decode", "__version__",
|
|
17
|
+
"process_html_table_be", "json_to_multiline_text",
|
|
18
|
+
"rows_to_compact_text", "compact_text_to_rows",
|
|
19
|
+
"html_table_to_multiline_text", "html_table_to_compact_text",
|
|
20
|
+
"html_table_to_markdown_text", "html_tables_to_markdown_text",
|
|
21
|
+
]
|
h_rots/__main__.py
ADDED