Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Nov 13, 2024
1 parent cac6dac commit 7dd49bc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/pie_modules/taskmodules/pointer_network_for_end2end_re.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,6 @@ def encode_annotations(
)
if encoded_relation is None:
raise Exception(f"failed to encode relation: {rel}")
if (rel.head, rel.tail) in relation_arguments2label:
previous_label = relation_arguments2label[(rel.head, rel.tail)]
if previous_label != rel.label:
logger.warning(
f"relation {rel.head} -> {rel.tail} already exists, but has another label: "
f"{previous_label} (previous label: {rel.label}). Skipping."
)
continue
relation_encodings[rel] = encoded_relation
all_relation_arguments.update([rel.head, rel.tail])
relation_arguments2label[(rel.head, rel.tail)] = rel.label
Expand Down

0 comments on commit 7dd49bc

Please sign in to comment.