Sebastian Gehrmann commited on
Commit
32beafc
1 Parent(s): 343cc2c

add loader

Browse files
cochrane-simplification.md ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Dataset Overview
2
+
3
+ ### Where to find the data and its documentation
4
+
5
+ #### What is the webpage for the dataset (if it exists)?
6
+
7
+ https://github.com/AshOlogn/Paragraph-level-Simplification-of-Medical-Texts
8
+
9
+ #### What is the link to where the original dataset is hosted?
10
+
11
+ https://github.com/AshOlogn/Paragraph-level-Simplification-of-Medical-Texts
12
+
13
+ #### What is the link to the paper describing the dataset (open access preferred)?
14
+
15
+ https://aclanthology.org/2021.naacl-main.395/
16
+
17
+ #### Provide the BibTex-formatted reference for the dataset. Please use the correct published version (ACL anthology, etc.) instead of google scholar created Bibtex.
18
+
19
+ ```
20
+ @inproceedings{devaraj-etal-2021-paragraph,
21
+ title = "Paragraph-level Simplification of Medical Texts",
22
+ author = "Devaraj, Ashwin and
23
+ Marshall, Iain and
24
+ Wallace, Byron and
25
+ Li, Junyi Jessy",
26
+ booktitle = "Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
27
+ month = jun,
28
+ year = "2021",
29
+ address = "Online",
30
+ publisher = "Association for Computational Linguistics",
31
+ url = "https://aclanthology.org/2021.naacl-main.395",
32
+ doi = "10.18653/v1/2021.naacl-main.395",
33
+ pages = "4972--4984",
34
+ }
35
+ ```
36
+
37
+ #### If known, provide the name of at least one person the reader can contact for questions about the dataset.
38
+
39
+ Ashwin Devaraj
40
+
41
+ #### If known, provide the email of at least one person the reader can contact for questions about the dataset.
42
+
43
+ ashwin.devaraj@utexas.edu
44
+
45
+ #### Does the dataset have an active leaderboard?
46
+
47
+ no
48
+
49
+ ### Languages and Intended Use
50
+
51
+ #### Is the dataset multilingual?
52
+
53
+ no
54
+
55
+ #### What languages/dialects are covered in the dataset?
56
+
57
+ English
58
+
59
+ #### What is the license of the dataset?
60
+
61
+ cc-by-4.0: Creative Commons Attribution 4.0 International
62
+
63
+ #### What is the intended use of the dataset?
64
+
65
+ The intended use of this dataset is to train models that simplify medical text at the paragraph level so that it may be more accessible to the lay reader.
66
+
67
+ #### What primary task does the dataset support?
68
+
69
+ Simplification
70
+
71
+ #### Provide a short description of the communicative goal of a model trained for this task on this dataset.
72
+
73
+ A model trained on this dataset can be used to simplify medical texts to make them more accessible to readers without medical expertise.
74
+
75
+ ### Credit
76
+
77
+ #### In what kind of organization did the dataset curation happen?
78
+
79
+ academic
80
+
81
+ #### Name the organization(s).
82
+
83
+ The University of Texas at Austin, King's College London, Northeastern University
84
+
85
+ #### Who created the original dataset? List the people involved in collecting the dataset and their affiliation(s).
86
+
87
+ Ashwin Devaraj (The University of Texas at Austin), Iain J. Marshall (King's College London), Byron C. Wallace (Northeastern University), Junyi Jessy Li (The University of Texas at Austin)
88
+
89
+ #### Who funded the data creation?
90
+
91
+ National Institutes of Health (NIH) grant R01-LM012086, National Science Foundation (NSF) grant IIS-1850153, Texas Advanced Computing Center (TACC) computational resources
92
+
93
+ #### Who contributed to the data card and adding the dataset to GEM? List the people+affiliations involved in creating this data card and who helped integrate this dataset into GEM.
94
+
95
+ Ashwin Devaraj (The University of Texas at Austin)
96
+
97
+ ### Structure
98
+
99
+ #### List and describe the fields present in the dataset.
100
+
101
+ gem_id: string, a unique identifier for the example
102
+ doi: string, DOI identifier for the Cochrane review from which the example was generated
103
+ source: string, an excerpt from an abstract of a Cochrane review
104
+ target: string, an excerpt from the plain-language summary of a Cochrane review that roughly aligns with the source text
105
+
106
+ #### Provide a JSON formatted example of a typical instance in the dataset.
107
+
108
+ ```json
109
+ {
110
+ "gem_id": "gem-cochrane-simplification-train-766",
111
+ "doi": "10.1002/14651858.CD002173.pub2",
112
+ "source": "Of 3500 titles retrieved from the literature, 24 papers reporting on 23 studies could be included in the review. The studies were published between 1970 and 1997 and together included 1026 participants. Most were cross-over studies. Few studies provided sufficient information to judge the concealment of allocation. Four studies provided results for the percentage of symptom-free days. Pooling the results did not reveal a statistically significant difference between sodium cromoglycate and placebo. For the other pooled outcomes, most of the symptom-related outcomes and bronchodilator use showed statistically significant results, but treatment effects were small. Considering the confidence intervals of the outcome measures, a clinically relevant effect of sodium cromoglycate cannot be excluded. The funnel plot showed an under-representation of small studies with negative results, suggesting publication bias. There is insufficient evidence to be sure about the efficacy of sodium cromoglycate over placebo. Publication bias is likely to have overestimated the beneficial effects of sodium cromoglycate as maintenance therapy in childhood asthma.",
113
+ "target": "In this review we aimed to determine whether there is evidence for the effectiveness of inhaled sodium cromoglycate as maintenance treatment in children with chronic asthma. Most of the studies were carried out in small groups of patients. Furthermore, we suspect that not all studies undertaken have been published. The results show that there is insufficient evidence to be sure about the beneficial effect of sodium cromoglycate compared to placebo. However, for several outcome measures the results favoured sodium cromoglycate."
114
+ }
115
+ ```
116
+
117
+ #### Describe and name the splits in the dataset if there are more than one.
118
+
119
+ train: 3568 examples
120
+ validation: 411 examples
121
+ test: 480 examples
122
+
123
+ ## Dataset in GEM
124
+
125
+ ### Rationale
126
+
127
+ #### What does this dataset contribute toward better generation evaluation and why is it part of GEM?
128
+
129
+ This dataset is the first paragraph-level simplification dataset published (as prior work had primarily focused on simplifying individual sentences). Furthermore, this dataset is in the medical domain, which is an especially useful domain for text simplification.
130
+
131
+ #### Do other datasets for the high level task exist?
132
+
133
+ no
134
+
135
+ #### Does this dataset cover other languages than other datasets for the same task?
136
+
137
+ no
138
+
139
+ #### What aspect of model ability can be measured with this dataset?
140
+
141
+ This dataset measures the ability for a model to simplify paragraphs of medical text through the omission non-salient information and simplification of medical jargon.
142
+
143
+ ### GEM Additional Curation
144
+
145
+ #### Has the GEM version of the dataset been modified in any way (data, processing, splits) from the original curated data?
146
+
147
+ no
148
+
149
+ #### Does GEM provide additional splits to the dataset?
150
+
151
+ no
152
+
153
+ ### Getting Started
154
+
155
+ ## Previous Results
156
+
157
+ ### Previous Results
158
+
159
+ #### What aspect of model ability can be measured with this dataset?
160
+
161
+ This dataset measures the ability for a model to simplify paragraphs of medical text through the omission non-salient information and simplification of medical jargon.
162
+
163
+ #### What metrics are typically used for this task?
164
+
165
+ Other: Other Metrics
166
+
167
+ #### Definitions of other metrics
168
+
169
+ SARI
170
+ BLEU
171
+
172
+ #### List and describe the purpose of the metrics and evaluation methodology (including human evaluation) that the dataset creators used when introducing this task.
173
+
174
+ SARI - measures quality of text simplification
175
+ BLEU - precision-based method to used to score quality of machine translation
176
+
177
+ #### Are previous results available?
178
+
179
+ yes
180
+
181
+ #### What are the most relevant previous results for this task/dataset?
182
+
183
+ The paper which introduced this dataset trained BART models (pretrained on XSum) with unlikelihood training to produce simplification models achieving maximum SARI and BLEU scores of 40 and 43 respectively.
184
+
185
+ ## Dataset Curation
186
+
187
+ ### Original Curation
188
+
189
+ #### Is the dataset aggregated from different data sources?
190
+
191
+ no
192
+
193
+ ### Language Data
194
+
195
+ #### Was the text validated by a different worker or a data curator?
196
+
197
+ not validated
198
+
199
+ #### Were text instances selected or filtered?
200
+
201
+ not filtered
202
+
203
+ ### Structured Annotations
204
+
205
+ #### Does the dataset have additional annotations for each instance?
206
+
207
+ none
208
+
209
+ #### Was an annotation service used?
210
+
211
+ no
212
+
213
+ ### Consent
214
+
215
+ #### Was there a consent policy involved when gathering the data?
216
+
217
+ no
218
+
219
+ ### Private Identifying Information (PII)
220
+
221
+ #### Does the source language data likely contain Personal Identifying Information about the data creators or subjects?
222
+
223
+ yes/very likely
224
+
225
+ #### Did the curators use any automatic/manual method to identify PII in the dataset?
226
+
227
+ no identification
228
+
229
+ ### Maintenance
230
+
231
+ #### Does the original dataset have a maintenance plan?
232
+
233
+ no
234
+
235
+ ## Broader Social Context
236
+
237
+ ### Previous Work on the Social Impact of the Dataset
238
+
239
+ #### Are you aware of cases where models trained on the task featured in this dataset ore related tasks have been used in automated systems?
240
+
241
+ no
242
+
243
+ ### Impact on Under-Served Communities
244
+
245
+ #### Does this dataset address the needs of communities that are traditionally underserved in language technology, and particularly language generation technology? Communities may be underserved for exemple because their language, language variety, or social or geographical context is underepresented in NLP and NLG resources (datasets and models).
246
+
247
+ yes
248
+
249
+ #### Describe how this dataset addresses the needs of underserved communities.
250
+
251
+ This dataset can be used to simplify medical texts that may otherwise be inaccessible to those without medical training.
252
+
253
+ ### Discussion of Biases
254
+
255
+ #### Are there documented social biases in the dataset? Biases in this context are variations in the ways members of different social categories are represented that can have harmful downstream consequences for members of the more disadvantaged group.
256
+
257
+ unsure
258
+
259
+ #### Does the distribution of language producers in the dataset accurately represent the full distribution of speakers of the language world-wide? If not, how does it differ?
260
+
261
+ The dataset was generated from abstracts and plain-language summaries of medical literature reviews that were written by medical professionals and thus does was not generated by people representative of the entire English-speaking population.
262
+
263
+ ## Considerations for Using the Data
264
+
265
+ ### PII Risks and Liability
266
+
267
+ ### Licenses
268
+
269
+ ### Known Technical Limitations
270
+
271
+ #### Describe any known technical limitations, such as spurrious correlations, train/test overlap, annotation biases, or mis-annotations, and cite the works that first identified these limitations when possible.
272
+
273
+ The main limitation of this dataset is that the information alignment between the abstract and plain-language summary is often rough, so the plain-language summary may contain information that isn't found in the abstract. Furthermore, the plain-language targets often contain formulaic statements like "this evidence is current to [month][year]" not found in the abstracts. Another limitation is that some plain-language summaries do not simplify the technical abstracts very much and still contain medical jargon.
274
+
275
+ #### When using a model trained on this dataset in a setting where users or the public may interact with its predictions, what are some pitfalls to look out for? In particular, describe some applications of the general task featured in this dataset that its curation or properties make it less suitable for.
276
+
277
+ The main pitfall to look out for is errors in factuality. Simplification work so far has not placed a strong emphasis on the logical fidelity of model generations with the input text, and the paper introducing this dataset does not explore modeling techniques to combat this. These kinds of errors are especially pernicious in the medical domain, and the models introduced in the paper do occasionally alter entities like disease and medication names.
278
+
cochrane-simplification.py ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import csv
2
+ import json
3
+ import os
4
+ import datasets
5
+
6
+ _CITATION = """\
7
+ @inproceedings{devaraj-etal-2021-paragraph,
8
+ title = "Paragraph-level Simplification of Medical Texts",
9
+ author = "Devaraj, Ashwin and
10
+ Marshall, Iain and
11
+ Wallace, Byron and
12
+ Li, Junyi Jessy",
13
+ booktitle = "Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
14
+ month = jun,
15
+ year = "2021",
16
+ address = "Online",
17
+ publisher = "Association for Computational Linguistics",
18
+ url = "https://aclanthology.org/2021.naacl-main.395",
19
+ doi = "10.18653/v1/2021.naacl-main.395",
20
+ pages = "4972--4984",
21
+ }
22
+ """
23
+
24
+ _DESCRIPTION = """\
25
+ This dataset measures the ability for a model to simplify paragraphs of medical text through the omission non-salient information and simplification of medical jargon.
26
+ """
27
+
28
+ _URLs = {
29
+ "train": "train.json",
30
+ "validation": "validation.json",
31
+ "test": "test.json",
32
+ }
33
+
34
+
35
+ class Cochrane(datasets.GeneratorBasedBuilder):
36
+ VERSION = datasets.Version("1.0.0")
37
+ DEFAULT_CONFIG_NAME = "cochrane-simplification"
38
+
39
+ def _info(self):
40
+ features = datasets.Features(
41
+ {
42
+ "gem_id": datasets.Value("string"),
43
+ "gem_parent_id": datasets.Value("string"),
44
+ "source": datasets.Value("string"),
45
+ "target": datasets.Value("string"),
46
+ "doi": datasets.Value("string"),
47
+ "references": [datasets.Value("string")],
48
+ }
49
+ )
50
+ return datasets.DatasetInfo(
51
+ description=_DESCRIPTION,
52
+ features=features,
53
+ supervised_keys=datasets.info.SupervisedKeysData(
54
+ input="source", output="target"
55
+ ),
56
+ homepage="https://github.com/AshOlogn/Paragraph-level-Simplification-of-Medical-Texts ",
57
+ citation=_CITATION,
58
+ )
59
+
60
+ def _split_generators(self, dl_manager):
61
+ """Returns SplitGenerators."""
62
+ dl_dir = dl_manager.download_and_extract(_URLs)
63
+ return [
64
+ datasets.SplitGenerator(
65
+ name=spl, gen_kwargs={"filepath": dl_dir[spl], "split": spl}
66
+ )
67
+ for spl in ["train", "validation", "test"]
68
+ ]
69
+
70
+ def _generate_examples(self, filepath, split):
71
+ """Yields examples."""
72
+ with open(filepath, encoding="utf-8") as f:
73
+ reader = json.load(f)
74
+ for id_, example in enumerate(reader):
75
+ yield id_, {
76
+ "gem_id": f"cochrane-simplification-{split}-{id_}",
77
+ "gem_parent_id": f"cochrane-simplification-{split}-{id_}",
78
+ "source": example["source"],
79
+ "target": example["target"],
80
+ "doi": example["doi"],
81
+ "references": [example["target"]],
82
+ }