Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.
fix: 修正文档格式,统一注释风格以提高可读性
yifanfeng971d3ad3fa11e9
diff --git a/hyperextract/templates/INSTRUCTION_ZH.md b/hyperextract/templates/INSTRUCTION_ZH.mdindex 7248538..e56f4dc 100644--- a/hyperextract/templates/INSTRUCTION_ZH.md+++ b/hyperextract/templates/INSTRUCTION_ZH.md@@ -195,9 +195,10 @@ template = MyTemplate(llm_client=..., embedder=...)template.feed_text('你的输入文本...')# 2. 框架自动处理!无需显式调用 extract()-# - 文本自动分块-# - Schema 自动抽取-# - 去重/关系建立自动完成++ - 文本自动分块+ - Schema 自动抽取+ - 去重/关系建立自动完成# 3. 直接查看结果或可视化print(template.items) # 查看提取的项目@@ -214,10 +215,10 @@ template.show() # 可视化知识图谱对于 AutoGraph 系列模板,可在初始化时选择提取策略:\\python-# 一阶段:同时提取节点和边(速度快)+- 一阶段:同时提取节点和边(速度快)template = MyGraph(llm_client=..., embedder=..., extraction_mode='one_stage')-# 二阶段:先提取节点,再提取边(精度高)+- 二阶段:先提取节点,再提取边(精度高)template = MyGraph(llm_client=..., embedder=..., extraction_mode='two_stage')\