Skip to content

Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.

fix(财务数据时间图): 优化边标签提取器中空值判断逻辑

yifanfeng97b091a6609baf
diff --git a/hyperextract/templates/zh/finance/financial_data_temporal_graph.py b/hyperextract/templates/zh/finance/financial_data_temporal_graph.py
index d249ce4..86ff8f6 100644
--- a/hyperextract/templates/zh/finance/financial_data_temporal_graph.py
+++ b/hyperextract/templates/zh/finance/financial_data_temporal_graph.py
@@ -249,7 +249,7 @@ class FinancialDataTemporalGraph(
return f"{node.name} ({node.entity_type})"
def edge_label_extractor(edge: FinancialDataEdge) -> str:
- if edge.value is None:
+ if not edge.value:
return f"{edge.relationship}"
return f"{edge.relationship} ({edge.value})"