Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.
fix: resolve identifiers.py conflict markers left in the #185 merge (broke import on main)
yifanfeng97472d15ae430e
diff --git a/hyperextract/utils/template_engine/parsers/identifiers.py b/hyperextract/utils/template_engine/parsers/identifiers.pyindex 0ffcb51..7f39d80 100644--- a/hyperextract/utils/template_engine/parsers/identifiers.py+++ b/hyperextract/utils/template_engine/parsers/identifiers.py@@ -145,7 +145,6 @@ def validate_identifiers_fields(f"relation_members['{role}'] references '{{{field}}}' but "f"relations.fields does not declare '{field}'")-<<<<<<< HEADelse:# Hypergraph member fields: a single field name or a list of them.member_fields = [members] if isinstance(members, str) else (members or [])@@ -155,6 +154,8 @@ def validate_identifiers_fields(f"relation_members references '{{{field}}}' but "f"relations.fields does not declare '{field}'")++ # time/location live on relations (see validator HE-T006 and the presets).for attr, field in (("time_field", identifiers.time_field),("location_field", identifiers.location_field),@@ -165,17 +166,6 @@ def validate_identifiers_fields(problems.append(f"{attr} references '{{{placeholder}}}' but "f"relations.fields does not declare '{placeholder}'"-=======- # time/location live on relations (see validator HE-T006 and the presets).- for attr in ("time_field", "location_field"):- value = getattr(identifiers, attr, None)- if value:- for field in _placeholders(value):- if field not in relation_fields:- problems.append(- f"{attr} references '{{{field}}}' but "- f"relations.fields does not declare '{field}'"->>>>>>> origin/main)if problems: