File size: 4,374 Bytes
d0bfe65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
---
license: other
task_categories:
- text-classification
- token-classification
language:
- en
multilinguality:
- monolingual
size_categories:
- n<1K
tags:
- causality
pretty_name: EventCausality
configs:
- config_name: causality detection
  data_files:
  - split: train
    path: causality-detection/train.parquet
  - split: validation
    path: causality-detection/dev.parquet
  - split: test
    path: causality-detection/test.parquet
  features:
  - name: index
    dtype: string
  - name: text
    dtype: string
  - name: label
    dtype:
      class_label:
        names:
          '0': uncausal
          '1': causal
- config_name: causal candidate extraction
  data_files:
  - split: train
    path: causal-candidate-extraction/train.parquet
  - split: validation
    path: causal-candidate-extraction/dev.parquet
  - split: test
    path: causal-candidate-extraction/test.parquet
  features:
  - name: index
    dtype: string
  - name: text
    dtype: string
  - name: entity
    sequence:
      sequence: int32
- config_name: causality identification
  data_files:
  - split: train
    path: causality-identification/train.parquet
  - split: validation
    path: causality-identification/dev.parquet
  - split: test
    path: causality-identification/test.parquet
  features:
  - name: index
    dtype: string
  - name: text
    dtype: string
  - name: relations
    list:
    - name: relationship
      dtype:
        class_label:
          names:
            '0': no-rel
            '1': causal
    - name: first
      dtype: string
    - name: second
      dtype: string
train-eval-index:
- config: causality detection
  task: text-classification
  task_id: text_classification
  splits:
    train_split: train
    eval_split: test
  col_mapping:
    text: text
    label: label
  metrics:
  - type: accuracy
  - type: precision
  - type: recall
  - type: f1
- config: causal candidate extraction
  task: token-classification
  task_id: token_classification
  splits:
    train_split: train
    eval_split: test
  metrics:
  - type: accuracy
  - type: precision
  - type: recall
  - type: f1
- config: causality identification
  task: text-classification
  task_id: text_classification
  splits:
    train_split: train
    eval_split: test
  metrics:
  - type: accuracy
  - type: precision
  - type: recall
  - type: f1
---

> [!NOTE]
> This repository integrates the EventCausality corpus into hf datasets. Please find the original dataset
> [here](https://cogcomp.seas.upenn.edu/page/resource_view/27). The data is sourced from the
> [CREST](https://github.com/phosseini/CREST) aggregation. Please see the [citations](#citations) at the end of this README.

## Dataset Description

- **Homepage:** https://cogcomp.seas.upenn.edu/page/resource_view/27
- **Paper:** [Causal Relation Extraction](https://aclanthology.org/D11-1027/)

# Usage
## Causality Detection
```py
from datasets import load_dataset
dataset = load_dataset("thagen/EventCausality", "causality detection")
```

## Causal Candidate Extraction
```py
from datasets import load_dataset
dataset = load_dataset("thagen/EventCausality", "causal candidate extraction")
```

## Causality Identification
```py
from datasets import load_dataset
dataset = load_dataset("thagen/EventCausality", "causality identification")
```

# Citations

The EventCausality paper by [Do et al., 2011](https://aclanthology.org/D11-1040/):
```bib
@inproceedings{do:2011,
  title = {Minimally {{Supervised Event Causality Identification}}},
  booktitle = {Proceedings of the 2011 {{Conference}} on {{Empirical Methods}} in {{Natural Language Processing}}, {{EMNLP}} 2011, 27-31 {{July}} 2011, {{John McIntyre Conference Centre}}, {{Edinburgh}}, {{UK}}, {{A}} Meeting of {{SIGDAT}}, a {{Special Interest Group}} of the {{ACL}}},
  author = {Do, Quang and Chan, Yee Seng and Roth, Dan},
  year = {2011},
  pages = {294--303},
  publisher = {ACL},
  urldate = {2026-01-05}
}
```

CREST by [Hosseini et al., 2021](https://arxiv.org/abs/2103.13606) &mdash; whose aggregation we used to source the EventCausality data:
```bib
@article{hosseini:2021,
  title = {Predicting {{Directionality}} in {{Causal Relations}} in {{Text}}},
  author = {Hosseini, Pedram and Broniatowski, David A. and Diab, Mona T.},
  year = {2021},
  journal = {CoRR},
  volume = {abs/2103.13606},
  eprint = {2103.13606},
  archiveprefix = {arXiv}
}
```