hyperextract 0.1.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.
- hyperextract-0.1.1/.gitignore +165 -0
- hyperextract-0.1.1/LICENSE +200 -0
- hyperextract-0.1.1/PKG-INFO +317 -0
- hyperextract-0.1.1/README.md +275 -0
- hyperextract-0.1.1/examples/en/autotypes/graph_demo.py +88 -0
- hyperextract-0.1.1/examples/en/autotypes/hypergraph_demo.py +87 -0
- hyperextract-0.1.1/examples/en/autotypes/list_demo.py +75 -0
- hyperextract-0.1.1/examples/en/autotypes/model_demo.py +86 -0
- hyperextract-0.1.1/examples/en/autotypes/set_demo.py +81 -0
- hyperextract-0.1.1/examples/en/autotypes/spatial_graph_demo.py +93 -0
- hyperextract-0.1.1/examples/en/autotypes/spatio_temporal_graph_demo.py +99 -0
- hyperextract-0.1.1/examples/en/autotypes/temporal_graph_demo.py +95 -0
- hyperextract-0.1.1/examples/en/methods/atom_demo.py +54 -0
- hyperextract-0.1.1/examples/en/methods/cog_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/en/methods/graph_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/en/methods/hyper_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/en/methods/hypergraph_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/en/methods/itext2kg_demo.py +54 -0
- hyperextract-0.1.1/examples/en/methods/itext2kg_star_demo.py +54 -0
- hyperextract-0.1.1/examples/en/methods/kg_gen_demo.py +54 -0
- hyperextract-0.1.1/examples/en/methods/light_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/en/templates/finance_template.py +73 -0
- hyperextract-0.1.1/examples/en/templates/general_template.py +73 -0
- hyperextract-0.1.1/examples/en/templates/industry_template.py +73 -0
- hyperextract-0.1.1/examples/en/templates/legal_template.py +73 -0
- hyperextract-0.1.1/examples/en/templates/list_templates.py +53 -0
- hyperextract-0.1.1/examples/en/templates/medicine_template.py +73 -0
- hyperextract-0.1.1/examples/en/templates/tcm_template.py +73 -0
- hyperextract-0.1.1/examples/zh/autotypes/graph_demo.py +82 -0
- hyperextract-0.1.1/examples/zh/autotypes/hypergraph_demo.py +85 -0
- hyperextract-0.1.1/examples/zh/autotypes/list_demo.py +74 -0
- hyperextract-0.1.1/examples/zh/autotypes/model_demo.py +86 -0
- hyperextract-0.1.1/examples/zh/autotypes/set_demo.py +80 -0
- hyperextract-0.1.1/examples/zh/autotypes/spatial_graph_demo.py +88 -0
- hyperextract-0.1.1/examples/zh/autotypes/spatio_temporal_graph_demo.py +98 -0
- hyperextract-0.1.1/examples/zh/autotypes/temporal_graph_demo.py +95 -0
- hyperextract-0.1.1/examples/zh/methods/atom_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/methods/cog_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/methods/graph_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/methods/hyper_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/methods/hypergraph_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/methods/itext2kg_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/methods/itext2kg_star_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/methods/kg_gen_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/methods/light_rag_demo.py +54 -0
- hyperextract-0.1.1/examples/zh/templates/finance_template.py +73 -0
- hyperextract-0.1.1/examples/zh/templates/general_template.py +73 -0
- hyperextract-0.1.1/examples/zh/templates/industry_template.py +73 -0
- hyperextract-0.1.1/examples/zh/templates/legal_template.py +73 -0
- hyperextract-0.1.1/examples/zh/templates/list_templates.py +53 -0
- hyperextract-0.1.1/examples/zh/templates/medicine_template.py +73 -0
- hyperextract-0.1.1/examples/zh/templates/tcm_template.py +73 -0
- hyperextract-0.1.1/hyperextract/__init__.py +67 -0
- hyperextract-0.1.1/hyperextract/cli/__init__.py +8 -0
- hyperextract-0.1.1/hyperextract/cli/__main__.py +6 -0
- hyperextract-0.1.1/hyperextract/cli/cli.py +775 -0
- hyperextract-0.1.1/hyperextract/cli/commands/__init__.py +6 -0
- hyperextract-0.1.1/hyperextract/cli/commands/config.py +331 -0
- hyperextract-0.1.1/hyperextract/cli/commands/list.py +160 -0
- hyperextract-0.1.1/hyperextract/cli/config.py +186 -0
- hyperextract-0.1.1/hyperextract/cli/utils.py +161 -0
- hyperextract-0.1.1/hyperextract/methods/__init__.py +29 -0
- hyperextract-0.1.1/hyperextract/methods/rag/__init__.py +19 -0
- hyperextract-0.1.1/hyperextract/methods/rag/cog_rag.py +538 -0
- hyperextract-0.1.1/hyperextract/methods/rag/graph_rag.py +594 -0
- hyperextract-0.1.1/hyperextract/methods/rag/hyper_rag.py +208 -0
- hyperextract-0.1.1/hyperextract/methods/rag/hypergraph_rag.py +282 -0
- hyperextract-0.1.1/hyperextract/methods/rag/light_rag.py +208 -0
- hyperextract-0.1.1/hyperextract/methods/registry.py +174 -0
- hyperextract-0.1.1/hyperextract/methods/typical/__init__.py +17 -0
- hyperextract-0.1.1/hyperextract/methods/typical/atom.py +619 -0
- hyperextract-0.1.1/hyperextract/methods/typical/itext2kg.py +186 -0
- hyperextract-0.1.1/hyperextract/methods/typical/itext2kg_star.py +339 -0
- hyperextract-0.1.1/hyperextract/methods/typical/kg_gen.py +293 -0
- hyperextract-0.1.1/hyperextract/templates/__init__.py +19 -0
- hyperextract-0.1.1/hyperextract/templates/presets/finance/earnings_summary.yaml +104 -0
- hyperextract-0.1.1/hyperextract/templates/presets/finance/event_timeline.yaml +105 -0
- hyperextract-0.1.1/hyperextract/templates/presets/finance/ownership_graph.yaml +102 -0
- hyperextract-0.1.1/hyperextract/templates/presets/finance/risk_factor_set.yaml +55 -0
- hyperextract-0.1.1/hyperextract/templates/presets/finance/sentiment_model.yaml +62 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/base_graph.yaml +98 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/base_hypergraph.yaml +96 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/base_list.yaml +47 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/base_model.yaml +47 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/base_set.yaml +49 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/base_spatial_graph.yaml +112 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/base_spatio_temporal_graph.yaml +128 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/base_temporal_graph.yaml +114 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/biography_graph.yaml +126 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/concept_graph.yaml +102 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/doc_structure.yaml +110 -0
- hyperextract-0.1.1/hyperextract/templates/presets/general/workflow_graph.yaml +122 -0
- hyperextract-0.1.1/hyperextract/templates/presets/industry/emergency_response.yaml +100 -0
- hyperextract-0.1.1/hyperextract/templates/presets/industry/equipment_topology.yaml +98 -0
- hyperextract-0.1.1/hyperextract/templates/presets/industry/failure_case.yaml +102 -0
- hyperextract-0.1.1/hyperextract/templates/presets/industry/operation_flow.yaml +108 -0
- hyperextract-0.1.1/hyperextract/templates/presets/industry/safety_control.yaml +102 -0
- hyperextract-0.1.1/hyperextract/templates/presets/legal/case_citation.yaml +102 -0
- hyperextract-0.1.1/hyperextract/templates/presets/legal/case_fact_timeline.yaml +109 -0
- hyperextract-0.1.1/hyperextract/templates/presets/legal/compliance_list.yaml +60 -0
- hyperextract-0.1.1/hyperextract/templates/presets/legal/contract_obligation.yaml +100 -0
- hyperextract-0.1.1/hyperextract/templates/presets/legal/defined_term_set.yaml +55 -0
- hyperextract-0.1.1/hyperextract/templates/presets/medicine/anatomy_graph.yaml +94 -0
- hyperextract-0.1.1/hyperextract/templates/presets/medicine/discharge_instruction.yaml +60 -0
- hyperextract-0.1.1/hyperextract/templates/presets/medicine/drug_interaction.yaml +108 -0
- hyperextract-0.1.1/hyperextract/templates/presets/medicine/hospital_timeline.yaml +107 -0
- hyperextract-0.1.1/hyperextract/templates/presets/medicine/treatment_map.yaml +106 -0
- hyperextract-0.1.1/hyperextract/templates/presets/tcm/formula_composition.yaml +126 -0
- hyperextract-0.1.1/hyperextract/templates/presets/tcm/herb_property.yaml +74 -0
- hyperextract-0.1.1/hyperextract/templates/presets/tcm/herb_relation.yaml +94 -0
- hyperextract-0.1.1/hyperextract/templates/presets/tcm/meridian_graph.yaml +92 -0
- hyperextract-0.1.1/hyperextract/templates/presets/tcm/syndrome_reasoning.yaml +133 -0
- hyperextract-0.1.1/hyperextract/types/__init__.py +79 -0
- hyperextract-0.1.1/hyperextract/types/base.py +611 -0
- hyperextract-0.1.1/hyperextract/types/graph.py +966 -0
- hyperextract-0.1.1/hyperextract/types/hypergraph.py +910 -0
- hyperextract-0.1.1/hyperextract/types/list.py +926 -0
- hyperextract-0.1.1/hyperextract/types/model.py +463 -0
- hyperextract-0.1.1/hyperextract/types/set.py +958 -0
- hyperextract-0.1.1/hyperextract/types/spatial_graph.py +327 -0
- hyperextract-0.1.1/hyperextract/types/spatio_temporal_graph.py +348 -0
- hyperextract-0.1.1/hyperextract/types/temporal_graph.py +338 -0
- hyperextract-0.1.1/hyperextract/utils/__init__.py +11 -0
- hyperextract-0.1.1/hyperextract/utils/client.py +52 -0
- hyperextract-0.1.1/hyperextract/utils/logging.py +97 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/__init__.py +32 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/factory.py +503 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/gallery.py +126 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/__init__.py +24 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/display.py +37 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/guideline.py +104 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/identifiers.py +133 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/loader.py +185 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/options.py +144 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/output.py +88 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/schemas/__init__.py +35 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/schemas/base.py +32 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/schemas/graph.py +51 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/parsers/schemas/naive.py +30 -0
- hyperextract-0.1.1/hyperextract/utils/template_engine/template.py +139 -0
- hyperextract-0.1.1/hyperextract-skills/graph-designer/cases/battle-analysis.yaml +116 -0
- hyperextract-0.1.1/hyperextract-skills/graph-designer/cases/biography-events.yaml +132 -0
- hyperextract-0.1.1/hyperextract-skills/graph-designer/cases/corporate-ownership.yaml +112 -0
- hyperextract-0.1.1/hyperextract-skills/record-designer/cases/earnings-summary.yaml +68 -0
- hyperextract-0.1.1/hyperextract-skills/record-designer/cases/entity-registry.yaml +57 -0
- hyperextract-0.1.1/hyperextract-skills/record-designer/cases/product-features.yaml +67 -0
- hyperextract-0.1.1/pyproject.toml +95 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
temp/
|
|
2
|
+
logs/
|
|
3
|
+
.trae/
|
|
4
|
+
.github/agents/
|
|
5
|
+
.claude/
|
|
6
|
+
|
|
7
|
+
# Byte-compiled / optimized / DLL files
|
|
8
|
+
__pycache__/
|
|
9
|
+
*.py[cod]
|
|
10
|
+
*$py.class
|
|
11
|
+
|
|
12
|
+
# C extensions
|
|
13
|
+
*.so
|
|
14
|
+
|
|
15
|
+
# Distribution / packaging
|
|
16
|
+
.Python
|
|
17
|
+
build/
|
|
18
|
+
develop-eggs/
|
|
19
|
+
dist/
|
|
20
|
+
downloads/
|
|
21
|
+
eggs/
|
|
22
|
+
.eggs/
|
|
23
|
+
lib/
|
|
24
|
+
lib64/
|
|
25
|
+
parts/
|
|
26
|
+
sdist/
|
|
27
|
+
var/
|
|
28
|
+
wheels/
|
|
29
|
+
share/python-wheels/
|
|
30
|
+
*.egg-info/
|
|
31
|
+
.installed.cfg
|
|
32
|
+
*.egg
|
|
33
|
+
MANIFEST
|
|
34
|
+
|
|
35
|
+
# PyInstaller
|
|
36
|
+
# Usually these files are written by a python script from a template
|
|
37
|
+
# before PyInstaller builds the exe, so may be deleted later.
|
|
38
|
+
*.manifest
|
|
39
|
+
*.spec
|
|
40
|
+
|
|
41
|
+
# Installer logs
|
|
42
|
+
pip-log.txt
|
|
43
|
+
pip-delete-this-directory.txt
|
|
44
|
+
|
|
45
|
+
# Unit test / coverage reports
|
|
46
|
+
htmlcov/
|
|
47
|
+
.tox/
|
|
48
|
+
.nosuch/
|
|
49
|
+
.nosuch/
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
v/
|
|
52
|
+
.v/
|
|
53
|
+
nosetests.xml
|
|
54
|
+
coverage.xml
|
|
55
|
+
*.cover
|
|
56
|
+
*.py,cover
|
|
57
|
+
.tracker
|
|
58
|
+
.hypothesis/
|
|
59
|
+
.pytest_cache/
|
|
60
|
+
cover/
|
|
61
|
+
|
|
62
|
+
# Translations
|
|
63
|
+
*.mo
|
|
64
|
+
*.pot
|
|
65
|
+
|
|
66
|
+
# Django stuff:
|
|
67
|
+
*.log
|
|
68
|
+
local_settings.py
|
|
69
|
+
db.sqlite3
|
|
70
|
+
db.sqlite3-journal
|
|
71
|
+
|
|
72
|
+
# Flask stuff:
|
|
73
|
+
instance/
|
|
74
|
+
.webassets-cache
|
|
75
|
+
|
|
76
|
+
# Scrapy stuff:
|
|
77
|
+
.scrapy
|
|
78
|
+
|
|
79
|
+
# Sphinx documentation
|
|
80
|
+
docs/_build/
|
|
81
|
+
|
|
82
|
+
# PyBuilder
|
|
83
|
+
.pybuilder/
|
|
84
|
+
target/
|
|
85
|
+
|
|
86
|
+
# Jupyter Notebook
|
|
87
|
+
.ipynb_checkpoints
|
|
88
|
+
|
|
89
|
+
# IPython
|
|
90
|
+
profile_default/
|
|
91
|
+
ipython_config.py
|
|
92
|
+
|
|
93
|
+
# pyenv
|
|
94
|
+
# For a library or package, you might want to ignore these files since the Python version is
|
|
95
|
+
# usually managed by the user. However, for a specific project, it might be useful to check them in.
|
|
96
|
+
# .python-version
|
|
97
|
+
|
|
98
|
+
# pipenv
|
|
99
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
100
|
+
# However, in case of collaboration, if you want to keep your dependencies next to your project code:
|
|
101
|
+
# Pipfile.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipenv, poetry.lock is generally recommended to be committed.
|
|
105
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
106
|
+
# poetry.lock
|
|
107
|
+
|
|
108
|
+
# pdm
|
|
109
|
+
# Similar to Pipenv, pdm.lock is generally recommended to be committed.
|
|
110
|
+
# .pdm-python
|
|
111
|
+
# .pdm-build/
|
|
112
|
+
|
|
113
|
+
# PEP 582; used by e.g. github.com/fannheyward/coc-pyright
|
|
114
|
+
__pypackages__/
|
|
115
|
+
|
|
116
|
+
# Celery stuff
|
|
117
|
+
celerybeat-schedule
|
|
118
|
+
celerybeat.pid
|
|
119
|
+
|
|
120
|
+
# SageMath parsed files
|
|
121
|
+
*.sage.py
|
|
122
|
+
|
|
123
|
+
# Environments
|
|
124
|
+
.env
|
|
125
|
+
.venv
|
|
126
|
+
env/
|
|
127
|
+
venv/
|
|
128
|
+
ENV/
|
|
129
|
+
env.bak/
|
|
130
|
+
venv.bak/
|
|
131
|
+
|
|
132
|
+
# Spyder project settings
|
|
133
|
+
.spyderproject
|
|
134
|
+
.spyproject
|
|
135
|
+
|
|
136
|
+
# Rope project settings
|
|
137
|
+
.ropeproject
|
|
138
|
+
|
|
139
|
+
# mkdocs documentation
|
|
140
|
+
/site
|
|
141
|
+
|
|
142
|
+
# mypy
|
|
143
|
+
.mypy_cache/
|
|
144
|
+
.dmypy.json
|
|
145
|
+
dmypy.json
|
|
146
|
+
|
|
147
|
+
# Pyre type checker
|
|
148
|
+
.pyre/
|
|
149
|
+
|
|
150
|
+
# pytype static type analyzer
|
|
151
|
+
.pytype/
|
|
152
|
+
|
|
153
|
+
# Cython debug symbols
|
|
154
|
+
cython_debug/
|
|
155
|
+
|
|
156
|
+
# PyCharm
|
|
157
|
+
.idea/
|
|
158
|
+
|
|
159
|
+
# VS Code
|
|
160
|
+
.vscode/
|
|
161
|
+
.history/
|
|
162
|
+
|
|
163
|
+
# OS
|
|
164
|
+
.DS_Store
|
|
165
|
+
Thumbs.db
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined in Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
24
|
+
permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or Object
|
|
36
|
+
form, made available under the License, as indicated by a copyright
|
|
37
|
+
notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original Work and any Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, such as but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
|
|
62
|
+
whom a Contribution has been received by Licensor and subsequently
|
|
63
|
+
incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a
|
|
82
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
83
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
84
|
+
or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate
|
|
86
|
+
as of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file, then any
|
|
106
|
+
Derivative Works that You distribute must include a readable
|
|
107
|
+
copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding those notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE from the Work, provided that
|
|
119
|
+
such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions of this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contribution.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
178
|
+
|
|
179
|
+
To apply the Apache License to your work, attach the following
|
|
180
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
181
|
+
replaced with your own identifying information. (Don't include
|
|
182
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
183
|
+
comment syntax for the file format. We also recommend that a
|
|
184
|
+
file or class name and description of purpose be included on the
|
|
185
|
+
same "printed page" as the copyright notice for easier
|
|
186
|
+
identification within third-party archives.
|
|
187
|
+
|
|
188
|
+
Copyright [2026] [Yifan Feng]
|
|
189
|
+
|
|
190
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
191
|
+
you may not use this file except in compliance with the License.
|
|
192
|
+
You may obtain a copy of the License at
|
|
193
|
+
|
|
194
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
195
|
+
|
|
196
|
+
Unless required by applicable law or agreed to in writing, software
|
|
197
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
198
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
199
|
+
See the License for the specific language governing permissions and
|
|
200
|
+
limitations under the License.
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hyperextract
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: An intelligent, LLM-powered knowledge extraction and evolution framework with semantic search capabilities
|
|
5
|
+
Project-URL: Homepage, https://github.com/yifanfeng97/hyper-extract
|
|
6
|
+
Project-URL: Repository, https://github.com/yifanfeng97/hyper-extract
|
|
7
|
+
Project-URL: Issues, https://github.com/yifanfeng97/hyper-extract/issues
|
|
8
|
+
Author-email: Yifan Feng <evanfeng97@gmail.com>
|
|
9
|
+
License: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: faiss,knowledge-extraction,langchain,llm,nlp,pydantic,rag,semantic-search
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: faiss-cpu>=1.13.2
|
|
23
|
+
Requires-Dist: langchain-community>=0.4.1
|
|
24
|
+
Requires-Dist: langchain-openai>=1.1.7
|
|
25
|
+
Requires-Dist: langchain>=1.2.6
|
|
26
|
+
Requires-Dist: ontomem>=0.2.3
|
|
27
|
+
Requires-Dist: ontosight>=0.1.5
|
|
28
|
+
Requires-Dist: python-dotenv>=1.2.1
|
|
29
|
+
Requires-Dist: rich>=13.7.0
|
|
30
|
+
Requires-Dist: semhash>=0.3.2
|
|
31
|
+
Requires-Dist: structlog>=25.0.0
|
|
32
|
+
Requires-Dist: tomli-w>=1.0.0
|
|
33
|
+
Requires-Dist: typer>=0.13.0
|
|
34
|
+
Provides-Extra: all
|
|
35
|
+
Requires-Dist: langchain-anthropic>=0.3.0; extra == 'all'
|
|
36
|
+
Requires-Dist: langchain-google-genai>=2.1.0; extra == 'all'
|
|
37
|
+
Provides-Extra: anthropic
|
|
38
|
+
Requires-Dist: langchain-anthropic>=0.3.0; extra == 'anthropic'
|
|
39
|
+
Provides-Extra: google
|
|
40
|
+
Requires-Dist: langchain-google-genai>=2.1.0; extra == 'google'
|
|
41
|
+
Description-Content-Type: text/markdown
|
|
42
|
+
|
|
43
|
+
<div align="center">
|
|
44
|
+
|
|
45
|
+
<picture>
|
|
46
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo/logo-horizontal-dark.svg">
|
|
47
|
+
<source media="(prefers-color-scheme: light)" srcset="docs/assets/logo/logo-horizontal.svg">
|
|
48
|
+
<img alt="Hyper-Extract Logo" src="docs/assets/logo/logo-horizontal.svg" width="600">
|
|
49
|
+
</picture>
|
|
50
|
+
|
|
51
|
+
<br/>
|
|
52
|
+
<br/>
|
|
53
|
+
|
|
54
|
+
**Smart Knowledge Extraction CLI**
|
|
55
|
+
|
|
56
|
+
**Transform documents into structured knowledge with one command.**
|
|
57
|
+
|
|
58
|
+
[📖 English Version](./README.md) · [中文版](./README_ZH.md)
|
|
59
|
+
|
|
60
|
+
[](https://pypi.org/project/hyperextract/)
|
|
61
|
+
[](https://python.org)
|
|
62
|
+
[](LICENSE)
|
|
63
|
+
[]()
|
|
64
|
+
|
|
65
|
+
<br/>
|
|
66
|
+
|
|
67
|
+
> **"Stop reading. Start understanding."**
|
|
68
|
+
> *"告别文档焦虑,让信息一目了然"*
|
|
69
|
+
|
|
70
|
+
<br/>
|
|
71
|
+
|
|
72
|
+
<img src="docs/assets/hero.jpg" alt="Hero & Workflow" width="800" style="max-width: 100%;">
|
|
73
|
+
|
|
74
|
+
<br/>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
Hyper-Extract is an intelligent, LLM-powered knowledge extraction and evolution framework. It radically simplifies transforming highly unstructured texts into persistent, predictable, and strongly-typed **Knowledge Abstracts**. It effortlessly extracts information into a wide spectrum of formats—ranging from simple **Collections** (Lists/Sets) and **Pydantic Models**, to complex **Knowledge Graphs**, **Hypergraphs**, and even **Spatio-Temporal Graphs**.
|
|
78
|
+
|
|
79
|
+
## ✨ Core Features
|
|
80
|
+
|
|
81
|
+
- 🔷 **8 Auto-Types:** From basic `AutoModel`/`AutoList` to advanced `AutoGraph`, `AutoHypergraph`, and `AutoSpatioTemporalGraph`.
|
|
82
|
+
- 🧠 **10+ Extraction Engines:** Out-of-the-box support for cutting-edge retrieval paradigms like `GraphRAG`, `LightRAG`, `Hyper-RAG`, and `KG-Gen`.
|
|
83
|
+
- 📝 **Declarative YAML Templates:** Zero-code extraction definition. Includes 80+ presets across 6 domains.
|
|
84
|
+
- 🔄 **Incremental Evolution:** Feed new documents on the fly to continuously map out and expand the extracted knowledge.
|
|
85
|
+
|
|
86
|
+
***
|
|
87
|
+
|
|
88
|
+
## ⚡ Quick Start
|
|
89
|
+
|
|
90
|
+
### 1. Installation
|
|
91
|
+
|
|
92
|
+
**For CLI Users** (install `he` command globally):
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
uv tool install hyperextract
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**For Python Developers** (use as library):
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
uv pip install hyperextract
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 2. The Command Line Way
|
|
105
|
+
|
|
106
|
+
Extract, search, and manage directly from CLI.
|
|
107
|
+
|
|
108
|
+
> By default, the CLI uses `gpt-4o-mini` and `text-embedding-3-small`.
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
# Configure OpenAI API Key
|
|
112
|
+
he config init -k YOUR_OPENAI_API_KEY
|
|
113
|
+
|
|
114
|
+
# Extract knowledge
|
|
115
|
+
he parse examples/en/tesla.md -t general/biography_graph -o ./output/ -l en
|
|
116
|
+
|
|
117
|
+
# Query the knowledge abstract
|
|
118
|
+
he search ./output/ "What are Tesla's major achievements?"
|
|
119
|
+
|
|
120
|
+
# Visualize the knowledge graph
|
|
121
|
+
he show ./output/
|
|
122
|
+
|
|
123
|
+
# Incrementally supplement knowledge
|
|
124
|
+
he feed ./output/ examples/en/tesla_question.md
|
|
125
|
+
|
|
126
|
+
# Show the updated knowledge graph
|
|
127
|
+
he show ./output/
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
<details>
|
|
131
|
+
<summary><b>🐍 The Python API Way</b> (click to expand)</summary>
|
|
132
|
+
<br>
|
|
133
|
+
|
|
134
|
+
### Installation
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# Clone the repository
|
|
138
|
+
git clone https://github.com/yifanfeng97/hyper-extract.git
|
|
139
|
+
cd hyper-extract
|
|
140
|
+
|
|
141
|
+
# Install dependencies
|
|
142
|
+
uv sync
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Configuration
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# Copy the example env file
|
|
149
|
+
cp .env.example .env
|
|
150
|
+
|
|
151
|
+
# Edit .env with your API key and base URL
|
|
152
|
+
# OPENAI_API_KEY=your-api-key
|
|
153
|
+
# OPENAI_BASE_URL=https://api.openai.com/v1
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Usage
|
|
157
|
+
|
|
158
|
+
```python
|
|
159
|
+
import os
|
|
160
|
+
from dotenv import load_dotenv
|
|
161
|
+
|
|
162
|
+
# Load environment variables from .env file
|
|
163
|
+
load_dotenv()
|
|
164
|
+
|
|
165
|
+
from hyperextract import Template
|
|
166
|
+
|
|
167
|
+
# Create a template
|
|
168
|
+
ka = Template.create("general/biography_graph")
|
|
169
|
+
|
|
170
|
+
# Parse a document
|
|
171
|
+
with open("examples/en/tesla.md", "r", encoding="utf-8") as f:
|
|
172
|
+
text = f.read()
|
|
173
|
+
result = ka.parse(text)
|
|
174
|
+
|
|
175
|
+
# Visualize the knowledge graph
|
|
176
|
+
ka.show(result)
|
|
177
|
+
|
|
178
|
+
# Incrementally supplement knowledge
|
|
179
|
+
with open("examples/en/tesla_question.md", "r", encoding="utf-8") as f:
|
|
180
|
+
new_text = f.read()
|
|
181
|
+
ka.feed(result, new_text)
|
|
182
|
+
|
|
183
|
+
# Show the updated knowledge graph
|
|
184
|
+
ka.show(result)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
> 🔗 For complete examples, see [examples/en](./examples/en/)
|
|
188
|
+
|
|
189
|
+
</details>
|
|
190
|
+
|
|
191
|
+
<br>
|
|
192
|
+
|
|
193
|
+
**Installation Comparison:**
|
|
194
|
+
|
|
195
|
+
| Use Case | Command | Purpose |
|
|
196
|
+
|----------|---------|---------|
|
|
197
|
+
| CLI Tool | `uv tool install hyperextract` | Install `he` command globally |
|
|
198
|
+
| Python Library | `uv pip install hyperextract` | Use in Python code |
|
|
199
|
+
|
|
200
|
+
## 🧩 Deep Dive: The 8 Auto-Types
|
|
201
|
+
|
|
202
|
+
Our framework embraces complexity without making you write boilerplate code.
|
|
203
|
+
|
|
204
|
+
<img src="docs/assets/autotypes.jpg" alt="Knowledge Structures Matrix" width="750" style="max-width: 100%;">
|
|
205
|
+
|
|
206
|
+
### Example: AutoGraph Visualization
|
|
207
|
+
|
|
208
|
+
Here is the knowledge graph visualization after `AutoGraph` extraction:
|
|
209
|
+
|
|
210
|
+
<img src="docs/assets/en_show.jpg" alt="AutoGraph Visualization" width="750" style="max-width: 100%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
|
|
211
|
+
|
|
212
|
+
## 🛠️ Architecture Overview
|
|
213
|
+
|
|
214
|
+
Hyper-Extract follows a **three-layer architecture**:
|
|
215
|
+
|
|
216
|
+
- **Auto-Types** define the data structures for knowledge extraction. With 8 strong-typed structures (AutoModel, AutoList, AutoSet, AutoGraph, AutoHypergraph, AutoTemporalGraph, AutoSpatialGraph, AutoSpatioTemporalGraph), they serve as the output format for all extractions.
|
|
217
|
+
|
|
218
|
+
- **Methods** provide extraction algorithms built on Auto-Types. This includes Typical methods (KG-Gen, iText2KG, iText2KG*) and RAG-based methods (GraphRAG, LightRAG, Hyper-RAG, HypergraphRAG, Cog-RAG).
|
|
219
|
+
|
|
220
|
+
- **Templates** offer domain-specific configurations with ready-to-use prompts and data structures. Covering 6 domains (Finance, Legal, Medical, TCM, Industry, General) with 80+ preset templates, users can extract knowledge without dealing with Auto-Types or Methods directly.
|
|
221
|
+
|
|
222
|
+
Use via **CLI** (`he parse`, `he search`, `he show`...) or **Python API** (`Template.create()`).
|
|
223
|
+
|
|
224
|
+
<img src="docs/assets/arch.jpg" alt="Architecture" width="750" style="max-width: 100%;">
|
|
225
|
+
|
|
226
|
+
### 📚 Related Documentation
|
|
227
|
+
|
|
228
|
+
- **Preset Templates**: Browse [80+ ready-to-use templates](./hyperextract/templates/presets/) across 6 domains
|
|
229
|
+
- **Design Guide**: Learn how to [create custom templates](./hyperextract/templates/DESIGN_GUIDE.md)
|
|
230
|
+
|
|
231
|
+
<details>
|
|
232
|
+
<summary><b>📋 Template Structure Example (Graph Type)</b></summary>
|
|
233
|
+
|
|
234
|
+
Here's a complete YAML template example for **Graph** type extraction (entity-relationship extraction):
|
|
235
|
+
|
|
236
|
+
```yaml
|
|
237
|
+
language: en
|
|
238
|
+
|
|
239
|
+
name: Knowledge Graph
|
|
240
|
+
type: graph
|
|
241
|
+
tags: [general]
|
|
242
|
+
|
|
243
|
+
description: 'Extract entities and their relationships to construct a knowledge graph.'
|
|
244
|
+
|
|
245
|
+
output:
|
|
246
|
+
entities:
|
|
247
|
+
fields:
|
|
248
|
+
- name: name
|
|
249
|
+
type: str
|
|
250
|
+
description: 'Entity name'
|
|
251
|
+
- name: type
|
|
252
|
+
type: str
|
|
253
|
+
description: 'Entity type: e.g., person, organization, event'
|
|
254
|
+
- name: description
|
|
255
|
+
type: str
|
|
256
|
+
description: 'Entity description'
|
|
257
|
+
relations:
|
|
258
|
+
fields:
|
|
259
|
+
- name: source
|
|
260
|
+
type: str
|
|
261
|
+
description: 'Source entity'
|
|
262
|
+
- name: target
|
|
263
|
+
type: str
|
|
264
|
+
description: 'Target entity'
|
|
265
|
+
- name: type
|
|
266
|
+
type: str
|
|
267
|
+
description: 'Relation type: e.g., invention, collaboration, competition'
|
|
268
|
+
- name: description
|
|
269
|
+
type: str
|
|
270
|
+
description: 'Relation description'
|
|
271
|
+
|
|
272
|
+
guideline:
|
|
273
|
+
target: 'Extract entities and their relationships from the text.'
|
|
274
|
+
rules_for_entities:
|
|
275
|
+
- 'Extract meaningful entities'
|
|
276
|
+
- 'Maintain consistent naming'
|
|
277
|
+
rules_for_relations:
|
|
278
|
+
- 'Create relations only when explicitly expressed in the text'
|
|
279
|
+
|
|
280
|
+
identifiers:
|
|
281
|
+
entity_id: name
|
|
282
|
+
relation_id: '{source}|{type}|{target}'
|
|
283
|
+
relation_members:
|
|
284
|
+
source: source
|
|
285
|
+
target: target
|
|
286
|
+
|
|
287
|
+
display:
|
|
288
|
+
entity_label: '{name} ({type})'
|
|
289
|
+
relation_label: '{type}'
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
</details>
|
|
293
|
+
|
|
294
|
+
## 📈 Comparison with Other Libraries
|
|
295
|
+
|
|
296
|
+
| Feature | GraphRAG | LightRAG | KG-Gen | ATOM | **Hyper-Extract** |
|
|
297
|
+
| ---------------- | :------: | :------: | :----: | :--: | :---------------: |
|
|
298
|
+
| Knowledge Graph | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
299
|
+
| Temporal Graph | ✅ | ❌ | ❌ | ✅ | ✅ |
|
|
300
|
+
| Spatial Graph | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
301
|
+
| Hypergraph | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
302
|
+
| Domain Templates | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
303
|
+
| CLI Tool | ✅ | ❌ | ❌ | ❌ | ✅ |
|
|
304
|
+
| Multi-language | ✅ | ❌ | ❌ | ❌ | ✅ |
|
|
305
|
+
|
|
306
|
+
## 📚 Related Documentation
|
|
307
|
+
|
|
308
|
+
- [Full Documentation](https://hyper-extract.github.io/en/) - Complete documentation site
|
|
309
|
+
- [中文文档](https://hyper-extract.github.io/zh/) - 中文文档
|
|
310
|
+
- [CLI Guide](https://hyper-extract.github.io/en/guides/cli/) - Command-line interface
|
|
311
|
+
- [Template Gallery](https://hyper-extract.github.io/en/reference/template-gallery/) - Available templates
|
|
312
|
+
- [Example Code](./examples/) - Working examples
|
|
313
|
+
|
|
314
|
+
## 🤝 Contributing & License
|
|
315
|
+
|
|
316
|
+
Contributions are welcome! Please submit Issues and PRs.
|
|
317
|
+
Licensed under **Apache-2.0**.
|