Datasets:
File size: 5,620 Bytes
41b388a 248821b 41b388a 248821b 41b388a 248821b 41b388a 248821b 41b388a 248821b 41b388a 248821b 41b388a 248821b 41b388a | 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 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | ---
license: unknown
task_categories:
- text-classification
- token-classification
language:
- en
multilinguality:
- monolingual
size_categories:
- 10K<n<100K
tags:
- causality
- biomedical
pretty_name: PubMedCausal
configs:
- config_name: causality detection
data_files:
- split: train
path: causality-detection/train.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: 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: 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 # Does not really make sense but exists to have the same labels as the classification task
'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 PubMedCausal causal relation extraction corpus into hf datasets.
> Please find the original dataset [here](https://github.com/josiahpaul07/PubMedCausal_Exp). Please
> see the [citations](#citations) at the end of this README.
## Dataset Description
- **Repository:** https://github.com/josiahpaul07/PubMedCausal_Exp
- **Paper:** Adewole et al. (2025). *PubMedCausal: A Biomedical Causal Relation Extraction Corpus.* [arXiv:2605.28363](https://arxiv.org/abs/2605.28363)
PubMedCausal is a biomedical causal relation extraction corpus built from PubMed abstracts.
Pairs are typed along two dimensions:
- **Causality:** Explicit / Implicit
- **Sententiality:** Intra-sentential / Inter-sentential
There are no countercausal annotations — all relations map to `Relation.Procausal`.
## Statistics
| Task | Train | Test |
|------|-------|------|
| Causality detection (sentences) | 15,000 (1,972 causal) | 15,000 (1,973 causal) |
| Causal candidate extraction | 1,972 | 1,973 |
| Causality identification | 1,529 | 1,528 |
# Usage
## Causality Detection
```py
from datasets import load_dataset
dataset = load_dataset("webis/PubMedCausal", "causality detection")
```
## Causal Candidate Extraction
```py
from datasets import load_dataset
dataset = load_dataset("webis/PubMedCausal", "causal candidate extraction")
```
## Causality Identification
```py
from datasets import load_dataset
dataset = load_dataset("webis/PubMedCausal", "causality identification")
```
## Conversion
Data is fetched directly from GitHub at conversion time; no local download is needed.
```bash
python conversion_script.py
```
This produces one parquet per split for each of the three tasks under this directory:
```
causality-detection/
causal-candidate-extraction/
causality-identification/
```
## Known limitation — unresolvable spans in the identification task
PubMedCausal sometimes records the **canonical / normalised form** of a span rather
than the exact surface text from the sentence. For example:
```
sentence: "...thus precluding practice and placebo effects..."
effect annotation: "precludes practice" ← lemmatised, does not match
```
Because the identification task requires inserting `<e1>…</e1>` markers at exact
character positions, pairs where either span cannot be located verbatim are
**skipped** during conversion. The conversion script prints a warning for each
skipped pair and a summary count at the end.
This affects **1,078 train pairs and 997 test pairs** (roughly 28% of intra-sentential
pairs), predominantly Implicit-causality annotations where the annotator wrote the
inferred proposition rather than the surface string. The detection and extraction
tasks are unaffected.
# Citations
The PubMedCausal paper by Adewole et al., 2025:
```bib
@article{kunle-john:2026,
title = {{{PubMedCausal}}: {{A Span-Level Annotated Corpus}} for {{Causal Relation Extraction}} in {{Biomedical Text}}},
shorttitle = {{{PubMedCausal}}},
author = {{Kunle-John}, Ifeoluwa and Paul, Josiah and Agbaakin, Oluwatosin and Aina, Peter and Odezuligbo, Ikenna and Anuyah, Sydney},
year = 2026,
journal = {CoRR},
volume = {abs/2605.28363},
eprint = {2605.28363},
doi = {10.48550/ARXIV.2605.28363},
url = {https://doi.org/10.48550/arXiv.2605.28363},
urldate = {2026-07-01},
archiveprefix = {arXiv}
}
```
|