Update README.md
Browse files
README.md
CHANGED
|
@@ -40,4 +40,89 @@ configs:
|
|
| 40 |
path: data/test-*
|
| 41 |
- split: validation
|
| 42 |
path: data/validation-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
path: data/test-*
|
| 41 |
- split: validation
|
| 42 |
path: data/validation-*
|
| 43 |
+
license: cc-by-4.0
|
| 44 |
+
task_categories:
|
| 45 |
+
- text-generation
|
| 46 |
+
- question-answering
|
| 47 |
+
- text-classification
|
| 48 |
+
tags:
|
| 49 |
+
- medical
|
| 50 |
+
- clinical
|
| 51 |
---
|
| 52 |
+
|
| 53 |
+
# MEDEC
|
| 54 |
+
|
| 55 |
+
HuggingFace upload of the MEDEC dataset with fixes. If used, please cite the original authors using the citation below.
|
| 56 |
+
|
| 57 |
+
## Dataset Details
|
| 58 |
+
|
| 59 |
+
### Dataset Description
|
| 60 |
+
|
| 61 |
+
The dataset contains three splits: **train**, **validation**, **test**.
|
| 62 |
+
|
| 63 |
+
Corrections to the original dataset:
|
| 64 |
+
- Added pipes to delimit sentence IDs and sentences in the `sentences` column, as stated in Prompt #1 in the paper.
|
| 65 |
+
- Fixed many broken sentences in the original dataset. For example, the original `ms-test-15` row had a malformed `sentences` column:
|
| 66 |
+
|
| 67 |
+
```txt
|
| 68 |
+
5 Her temperature is 37.5 C
|
| 69 |
+
6 (99.5 F ); pulse is 75/min; respiratory rate is 13/min, and blood pressure is
|
| 70 |
+
7 115/70 mm
|
| 71 |
+
8 Hg.
|
| 72 |
+
9 A maculopapular rash is observed over the trunk and limbs.
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
which is corrected in this dataset to be
|
| 76 |
+
|
| 77 |
+
```txt
|
| 78 |
+
5 | Her temperature is 37.5C (99.5 F); pulse is 75/min; respiratory rate is 13/min, and blood pressure is 115/70 mm Hg.
|
| 79 |
+
6 | A maculopapular rash is observed over the trunk and limbs.
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
### Dataset Sources
|
| 83 |
+
|
| 84 |
+
- **Repository:** https://github.com/abachaa/MEDEC
|
| 85 |
+
- **Paper:** https://arxiv.org/pdf/2412.19260
|
| 86 |
+
|
| 87 |
+
### Direct Use
|
| 88 |
+
|
| 89 |
+
```python
|
| 90 |
+
import json
|
| 91 |
+
from datasets import load_dataset
|
| 92 |
+
|
| 93 |
+
if __name__ == "__main__":
|
| 94 |
+
# load all data
|
| 95 |
+
dataset = load_dataset("mkieffer/MEDEC")
|
| 96 |
+
|
| 97 |
+
# load only train split
|
| 98 |
+
dataset_train = load_dataset("mkieffer/MEDEC", split="train")
|
| 99 |
+
|
| 100 |
+
# load only test split
|
| 101 |
+
dataset_test = load_dataset("mkieffer/MEDEC", split="test")
|
| 102 |
+
|
| 103 |
+
# load only validation split
|
| 104 |
+
dataset_val = load_dataset("mkieffer/MEDEC", split="validation")
|
| 105 |
+
|
| 106 |
+
print("\nfull dataset:\n", dataset)
|
| 107 |
+
print("\ntrain split:\n", dataset_train)
|
| 108 |
+
print("\test split:\n", dataset_test)
|
| 109 |
+
print("\validation split:\n", dataset_val)
|
| 110 |
+
|
| 111 |
+
print("\ntrain sample:\n", json.dumps(dataset_train[0], indent=2))
|
| 112 |
+
print("\test sample:\n", json.dumps(dataset_test[0], indent=2))
|
| 113 |
+
print("\validation sample:\n", json.dumps(dataset_val[0], indent=2))
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
## Citation
|
| 118 |
+
|
| 119 |
+
```
|
| 120 |
+
@article{medec,
|
| 121 |
+
author = {Asma {Ben Abacha} and Wen-wai Yim and Yujuan Fu and Zhaoyi Sun and Meliha Yetisgen and Fei Xia and Thomas Lin},
|
| 122 |
+
title = {MEDEC: A Benchmark for Medical Error Detection and Correction in Clinical Notes},
|
| 123 |
+
journal = {CoRR},
|
| 124 |
+
eprinttype = {arXiv},
|
| 125 |
+
url = {https://arxiv.org/pdf/2412.19260},
|
| 126 |
+
year = {2024}
|
| 127 |
+
}
|
| 128 |
+
```
|