system HF staff commited on
Commit
8ab81e7
1 Parent(s): 57cdfab

Update files from the datasets library (from 1.13.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.13.0

README.md CHANGED
@@ -18,8 +18,9 @@ task_categories:
18
  task_ids:
19
  - other-other-disambiguation
20
  paperswithcode_id: medal
 
21
  ---
22
- # Dataset Card Creation Guide
23
 
24
  ## Table of Contents
25
  - [Dataset Description](#dataset-description)
@@ -70,19 +71,38 @@ English (en)
70
 
71
  ## Dataset Structure
72
 
73
- [More Information Needed]
 
 
 
 
74
 
75
  ### Data Instances
76
 
77
- [More Information Needed]
 
 
 
 
 
 
 
78
 
79
  ### Data Fields
80
 
81
- [More Information Needed]
 
 
 
82
 
83
  ### Data Splits
84
 
85
- [More Information Needed]
 
 
 
 
 
86
 
87
  ## Dataset Creation
88
 
@@ -93,7 +113,7 @@ English (en)
93
 
94
  ### Source Data
95
 
96
- [More Information Needed]
97
 
98
  #### Initial Data Collection and Normalization
99
 
@@ -105,7 +125,7 @@ English (en)
105
 
106
  ### Annotations
107
 
108
- [More Information Needed]
109
 
110
  #### Annotation process
111
 
@@ -127,7 +147,7 @@ English (en)
127
 
128
  ### Discussion of Biases
129
 
130
- [More Information Needed]
131
 
132
  ### Other Known Limitations
133
 
@@ -141,7 +161,35 @@ English (en)
141
 
142
  ### Licensing Information
143
 
144
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
 
146
  ### Citation Information
147
 
@@ -164,4 +212,4 @@ English (en)
164
 
165
  ### Contributions
166
 
167
- Thanks to [@Narsil](https://github.com/Narsil) for adding this dataset.
 
18
  task_ids:
19
  - other-other-disambiguation
20
  paperswithcode_id: medal
21
+ pretty_name: MeDAL
22
  ---
23
+ # Dataset Card for the MeDAL dataset
24
 
25
  ## Table of Contents
26
  - [Dataset Description](#dataset-description)
 
71
 
72
  ## Dataset Structure
73
 
74
+ Each file is a table consisting of three columns:
75
+ * text: The normalized content of an abstract
76
+ * location: The location (index) of each abbreviation that was substituted
77
+ * label: The word at that was substituted at the given location
78
+
79
 
80
  ### Data Instances
81
 
82
+ An example from the train split is:
83
+
84
+ ```
85
+ {'abstract_id': 14145090,
86
+ 'text': 'velvet antlers vas are commonly used in traditional chinese medicine and invigorant and contain many PET components for health promotion the velvet antler peptide svap is one of active components in vas based on structural study the svap interacts with tgfβ receptors and disrupts the tgfβ pathway we hypothesized that svap prevents cardiac fibrosis from pressure overload by blocking tgfβ signaling SDRs underwent TAC tac or a sham operation T3 one month rats received either svap mgkgday or vehicle for an additional one month tac surgery induced significant cardiac dysfunction FB activation and fibrosis these effects were improved by treatment with svap in the heart tissue tac remarkably increased the expression of tgfβ and connective tissue growth factor ctgf ROS species C2 and the phosphorylation C2 of smad and ERK kinases erk svap inhibited the increases in reactive oxygen species C2 ctgf expression and the phosphorylation of smad and erk but not tgfβ expression in cultured cardiac fibroblasts angiotensin ii ang ii had similar effects compared to tac surgery such as increases in αsmapositive CFs and collagen synthesis svap eliminated these effects by disrupting tgfβ IB to its receptors and blocking ang iitgfβ downstream signaling these results demonstrated that svap has antifibrotic effects by blocking the tgfβ pathway in CFs',
87
+ 'location': [63],
88
+ 'label': ['transverse aortic constriction']}
89
+ ```
90
 
91
  ### Data Fields
92
 
93
+ The column types are:
94
+ * text: content of the abstract as a string
95
+ * location: index of the substitution as an integer
96
+ * label: substitued word as a string
97
 
98
  ### Data Splits
99
 
100
+ The following files are present:
101
+
102
+ * `full_data.csv`: The full dataset with all 14M abstracts.
103
+ * `train.csv`: The subset used to train the baseline and proposed models.
104
+ * `valid.csv`: The subset used to validate the model during training for hyperparameter selection.
105
+ * `test.csv`: The subset used to evaluate the model and report the results in the tables.
106
 
107
  ## Dataset Creation
108
 
 
113
 
114
  ### Source Data
115
 
116
+ The original dataset was retrieved and modified from the [NLM website](https://www.nlm.nih.gov/databases/download/pubmed_medline.html).
117
 
118
  #### Initial Data Collection and Normalization
119
 
 
125
 
126
  ### Annotations
127
 
128
+ Details on how the abbreviations were created can be found in section 2.2 (Dataset Creation) of the [ACL ClinicalNLP paper](https://aclanthology.org/2020.clinicalnlp-1.15.pdf).
129
 
130
  #### Annotation process
131
 
 
147
 
148
  ### Discussion of Biases
149
 
150
+ Since the abstracts are written in English, the data is biased towards anglo-centric medical research. If you plan to use a model pre-trained on this dataset for a predominantly non-English community, it is important to verify whether there are negative biases present in your model, and ensure that they are correctly mitigated. For instance, you could fine-tune your dataset on a multilingual medical disambiguation dataset, or collect a dataset specific to your use case.
151
 
152
  ### Other Known Limitations
153
 
 
161
 
162
  ### Licensing Information
163
 
164
+ The ELECTRA model is licensed under [Apache 2.0](https://github.com/google-research/electra/blob/master/LICENSE). The license for the libraries used in this project (`transformers`, `pytorch`, etc.) can be found in their respective GitHub repository. Our model is released under a MIT license.
165
+
166
+
167
+ The original dataset was retrieved and modified from the [NLM website](https://www.nlm.nih.gov/databases/download/pubmed_medline.html). By using this dataset, you are bound by the [terms and conditions](https://www.nlm.nih.gov/databases/download/terms_and_conditions_pubmed.html) specified by NLM:
168
+
169
+ > INTRODUCTION
170
+ >
171
+ > Downloading data from the National Library of Medicine FTP servers indicates your acceptance of the following Terms and Conditions: No charges, usage fees or royalties are paid to NLM for this data.
172
+ >
173
+ > MEDLINE/PUBMED SPECIFIC TERMS
174
+ >
175
+ > NLM freely provides PubMed/MEDLINE data. Please note some PubMed/MEDLINE abstracts may be protected by copyright.
176
+ >
177
+ > GENERAL TERMS AND CONDITIONS
178
+ >
179
+ > * Users of the data agree to:
180
+ > * acknowledge NLM as the source of the data by including the phrase "Courtesy of the U.S. National Library of Medicine" in a clear and conspicuous manner,
181
+ > * properly use registration and/or trademark symbols when referring to NLM products, and
182
+ > * not indicate or imply that NLM has endorsed its products/services/applications.
183
+ >
184
+ > * Users who republish or redistribute the data (services, products or raw data) agree to:
185
+ > * maintain the most current version of all distributed data, or
186
+ > * make known in a clear and conspicuous manner that the products/services/applications do not reflect the most current/accurate data available from NLM.
187
+ >
188
+ > * These data are produced with a reasonable standard of care, but NLM makes no warranties express or implied, including no warranty of merchantability or fitness for particular purpose, regarding the accuracy or completeness of the data. Users agree to hold NLM and the U.S. Government harmless from any liability resulting from errors in the data. NLM disclaims any liability for any consequences due to use, misuse, or interpretation of information contained or not contained in the data.
189
+ >
190
+ > * NLM does not provide legal advice regarding copyright, fair use, or other aspects of intellectual property rights. See the NLM Copyright page.
191
+ >
192
+ > * NLM reserves the right to change the type and format of its machine-readable data. NLM will take reasonable steps to inform users of any changes to the format of the data before the data are distributed via the announcement section or subscription to email and RSS updates.
193
 
194
  ### Citation Information
195
 
 
212
 
213
  ### Contributions
214
 
215
+ Thanks to [@Narsil](https://github.com/Narsil) and [@xhlulu](https://github.com/xhlulu)) for adding this dataset.
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "A large medical text dataset (14Go) curated to 4Go for abbreviation disambiguation, designed for natural language understanding pre-training in the medical domain. For example, DHF can be disambiguated to dihydrofolate, diastolic heart failure, dengue hemorragic fever or dihydroxyfumarate\n", "citation": "@inproceedings{wen-etal-2020-medal,\n title = \"{M}e{DAL}: Medical Abbreviation Disambiguation Dataset for Natural Language Understanding Pretraining\",\n author = \"Wen, Zhi and\n Lu, Xing Han and\n Reddy, Siva\",\n booktitle = \"Proceedings of the 3rd Clinical Natural Language Processing Workshop\",\n month = nov,\n year = \"2020\",\n address = \"Online\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://www.aclweb.org/anthology/2020.clinicalnlp-1.15\",\n pages = \"130--135\",\n abstract = \"One of the biggest challenges that prohibit the use of many current NLP methods in clinical settings is the availability of public datasets. In this work, we present MeDAL, a large medical text dataset curated for abbreviation disambiguation, designed for natural language understanding pre-training in the medical domain. We pre-trained several models of common architectures on this dataset and empirically showed that such pre-training leads to improved performance and convergence speed when fine-tuning on downstream medical tasks.\",\n}", "homepage": "https://github.com/BruceWen120/medal", "license": "", "features": {"abstract_id": {"dtype": "int32", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "location": {"feature": {"dtype": "int32", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "label": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "medal", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3573399948, "num_examples": 3000000, "dataset_name": "medal"}, "test": {"name": "test", "num_bytes": 1190766821, "num_examples": 1000000, "dataset_name": "medal"}, "validation": {"name": "validation", "num_bytes": 1191410723, "num_examples": 1000000, "dataset_name": "medal"}, "full": {"name": "full", "num_bytes": 15536883723, "num_examples": 14393619, "dataset_name": "medal"}}, "download_checksums": {"https://zenodo.org/record/4276178/files/train.csv": {"num_bytes": 3541556520, "checksum": "c5fef2feebd1ecd35b4fe7a0aec266b631c0ac511d4d6b685835328b1ffbf32d"}, "https://zenodo.org/record/4276178/files/test.csv": {"num_bytes": 1180152075, "checksum": "ad391a63449c2bbbdbdf8d1827da4c053607a8586f4162174ba4ccf13efd8f86"}, "https://zenodo.org/record/4276178/files/valid.csv": {"num_bytes": 1180795804, "checksum": "08a0a6c2ee40747744ec15675ab5dc1e2b04491ca951b14c15d8d7bf9d33694d"}, "https://zenodo.org/record/4276178/files/full_data.csv": {"num_bytes": 15158424679, "checksum": "70f1ad891bdf98a42395a8907b48284457ae36d17fcc5a0a9c65c0b6b45ecf8d"}}, "download_size": 21060929078, "post_processing_size": null, "dataset_size": 21492461215, "size_in_bytes": 42553390293}}
 
1
+ {"default": {"description": "A large medical text dataset (14Go) curated to 4Go for abbreviation disambiguation, designed for natural language understanding pre-training in the medical domain. For example, DHF can be disambiguated to dihydrofolate, diastolic heart failure, dengue hemorragic fever or dihydroxyfumarate\n", "citation": "@inproceedings{wen-etal-2020-medal,\n title = \"{M}e{DAL}: Medical Abbreviation Disambiguation Dataset for Natural Language Understanding Pretraining\",\n author = \"Wen, Zhi and\n Lu, Xing Han and\n Reddy, Siva\",\n booktitle = \"Proceedings of the 3rd Clinical Natural Language Processing Workshop\",\n month = nov,\n year = \"2020\",\n address = \"Online\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://www.aclweb.org/anthology/2020.clinicalnlp-1.15\",\n pages = \"130--135\",\n abstract = \"One of the biggest challenges that prohibit the use of many current NLP methods in clinical settings is the availability of public datasets. In this work, we present MeDAL, a large medical text dataset curated for abbreviation disambiguation, designed for natural language understanding pre-training in the medical domain. We pre-trained several models of common architectures on this dataset and empirically showed that such pre-training leads to improved performance and convergence speed when fine-tuning on downstream medical tasks.\",\n}", "homepage": "https://github.com/BruceWen120/medal", "license": "", "features": {"abstract_id": {"dtype": "int32", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "location": {"feature": {"dtype": "int32", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "label": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "medal", "config_name": "default", "version": {"version_str": "4.0.0", "description": null, "major": 4, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3573399948, "num_examples": 3000000, "dataset_name": "medal"}, "test": {"name": "test", "num_bytes": 1190766821, "num_examples": 1000000, "dataset_name": "medal"}, "validation": {"name": "validation", "num_bytes": 1191410723, "num_examples": 1000000, "dataset_name": "medal"}, "full": {"name": "full", "num_bytes": 15536883723, "num_examples": 14393619, "dataset_name": "medal"}}, "download_checksums": {"https://zenodo.org/record/4482922/files/train.csv": {"num_bytes": 3541556520, "checksum": "c5fef2feebd1ecd35b4fe7a0aec266b631c0ac511d4d6b685835328b1ffbf32d"}, "https://zenodo.org/record/4482922/files/test.csv": {"num_bytes": 1180152075, "checksum": "ad391a63449c2bbbdbdf8d1827da4c053607a8586f4162174ba4ccf13efd8f86"}, "https://zenodo.org/record/4482922/files/valid.csv": {"num_bytes": 1180795804, "checksum": "08a0a6c2ee40747744ec15675ab5dc1e2b04491ca951b14c15d8d7bf9d33694d"}, "https://zenodo.org/record/4482922/files/full_data.csv": {"num_bytes": 15158424679, "checksum": "70f1ad891bdf98a42395a8907b48284457ae36d17fcc5a0a9c65c0b6b45ecf8d"}}, "download_size": 21060929078, "post_processing_size": null, "dataset_size": 21492461215, "size_in_bytes": 42553390293}}
dummy/{1.0.0 → 4.0.0}/dummy_data.zip RENAMED
File without changes
medal.py CHANGED
@@ -45,7 +45,7 @@ _DESCRIPTION = """\
45
  A large medical text dataset (14Go) curated to 4Go for abbreviation disambiguation, designed for natural language understanding pre-training in the medical domain. For example, DHF can be disambiguated to dihydrofolate, diastolic heart failure, dengue hemorragic fever or dihydroxyfumarate
46
  """
47
 
48
- _URL = "https://zenodo.org/record/4276178/files/"
49
  _URLS = {
50
  "train": _URL + "train.csv",
51
  "test": _URL + "test.csv",
@@ -57,7 +57,7 @@ _URLS = {
57
  class Medal(datasets.GeneratorBasedBuilder):
58
  """Medal: Medical Abbreviation Disambiguation Dataset for Natural Language Understanding Pretraining"""
59
 
60
- VERSION = datasets.Version("1.0.0")
61
 
62
  def _info(self):
63
  return datasets.DatasetInfo(
 
45
  A large medical text dataset (14Go) curated to 4Go for abbreviation disambiguation, designed for natural language understanding pre-training in the medical domain. For example, DHF can be disambiguated to dihydrofolate, diastolic heart failure, dengue hemorragic fever or dihydroxyfumarate
46
  """
47
 
48
+ _URL = "https://zenodo.org/record/4482922/files/"
49
  _URLS = {
50
  "train": _URL + "train.csv",
51
  "test": _URL + "test.csv",
 
57
  class Medal(datasets.GeneratorBasedBuilder):
58
  """Medal: Medical Abbreviation Disambiguation Dataset for Natural Language Understanding Pretraining"""
59
 
60
+ VERSION = datasets.Version("4.0.0")
61
 
62
  def _info(self):
63
  return datasets.DatasetInfo(