Skip to content

Commit

Permalink
sciarg dataset: fix contradicts is symmetric (#163)
Browse files Browse the repository at this point in the history
* add "contradicts" to relations that get direction normalized

* fix labels in readme tables
  • Loading branch information
ArneBinder authored Nov 11, 2024
1 parent e68f60d commit 908f473
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions dataset_builders/pie/sciarg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ possibly since [Lauscher et al., 2018](https://aclanthology.org/W18-5206/) prese

| Relations | Count | Percentage |
| -------------------------- | ----: | ---------: |
| support: `support` | 5789 | 74.0 % |
| attack: `contradict` | 696 | 8.9 % |
| support: `supports` | 5789 | 74.0 % |
| attack: `contradicts` | 696 | 8.9 % |
| other: `semantically_same` | 44 | 0.6 % |
| other: `parts_of_same` | 1298 | 16.6 % |
| total | 7827 | 100.0 % |
Expand All @@ -146,17 +146,17 @@ possibly since [Lauscher et al., 2018](https://aclanthology.org/W18-5206/) prese

| Relations | Count | Percentage |
| -------------------------- | ----: | ---------: |
| support: `support` | 5788 | 88.7 % |
| attack: `contradict` | 696 | 10.7 % |
| support: `supports` | 5788 | 88.7 % |
| attack: `contradicts` | 696 | 10.7 % |
| other: `semantically_same` | 44 | 0.7 % |
| total | 6528 | 100.0 % |

##### Argumentative relations

- `support`:
- `supports`:
- if the assumed veracity of *b* increases with the veracity of *a*
- "Usually, this relationship exists from data to claim, but in many cases a claim might support another claim. Other combinations are still possible." - (*Annotation Guidelines*, p. 3)
- `contradict`:
- `contradicts`:
- if the assumed veracity of *b* decreases with the veracity of *a*
- It is a **bi-directional**, i.e., symmetric relationship.

Expand Down
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 908f473

Please sign in to comment.