Skip to content

Commit

Permalink
add "contradicts" to relations that get direction normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Nov 11, 2024
1 parent e68f60d commit 7306771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dataset_builders/pie/sciarg/sciarg.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_common_converter_pipeline_steps(target_document_type: type[Document]) ->
trim_adus=TextSpanTrimmer(layer="labeled_spans"),
sort_symmetric_relation_arguments=RelationArgumentSorter(
relation_layer="binary_relations",
label_whitelist=["parts_of_same", "semantically_same"],
label_whitelist=["parts_of_same", "semantically_same", "contradicts"],
),
)

Expand Down
4 changes: 2 additions & 2 deletions tests/dataset_builders/pie/sciarg/test_sciarg.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ def test_converted_document(converted_document, dataset_variant):
),
),
(
("This approach is not commonly applied", "background_claim"),
"contradicts",
(
"artists will edit the geometry of characters in the rest pose to fine-tune animations",
"background_claim",
),
"contradicts",
("This approach is not commonly applied", "background_claim"),
),
(
(
Expand Down

0 comments on commit 7306771

Please sign in to comment.