system HF staff commited on
Commit
d1d1005
1 Parent(s): 275e662

Update files from the datasets library (from 1.4.0)

Browse files

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

Files changed (2) hide show
  1. README.md +21 -21
  2. biomrc.py +6 -4
README.md CHANGED
@@ -27,7 +27,7 @@
27
  - [Citation Information](#citation-information)
28
  - [Contributions](#contributions)
29
 
30
- ## [Dataset Description](#dataset-description)
31
 
32
  - **Homepage:** [http://nlp.cs.aueb.gr/](http://nlp.cs.aueb.gr/)
33
  - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
@@ -37,23 +37,23 @@
37
  - **Size of the generated dataset:** 5539.64 MB
38
  - **Total amount of disk used:** 6765.92 MB
39
 
40
- ### [Dataset Summary](#dataset-summary)
41
 
42
  We introduce BIOMRC, a large-scale cloze-style biomedical MRC dataset. Care was taken to reduce noise, compared to the previous BIOREAD dataset of Pappas et al. (2018). Experiments show that simple heuristics do not perform well on the new dataset and that two neural MRC models that had been tested on BIOREAD perform much better on BIOMRC, indicating that the new dataset is indeed less noisy or at least that its task is more feasible. Non-expert human performance is also higher on the new dataset compared to BIOREAD, and biomedical experts perform even better. We also introduce a new BERT-based MRC model, the best version of which substantially outperforms all other methods tested, reaching or surpassing the accuracy of biomedical experts in some experiments. We make the new dataset available in three different sizes, also releasing our code, and providing a leaderboard.
43
 
44
- ### [Supported Tasks](#supported-tasks)
45
 
46
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
47
 
48
- ### [Languages](#languages)
49
 
50
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
51
 
52
- ## [Dataset Structure](#dataset-structure)
53
 
54
  We show detailed information for up to 5 configurations of the dataset.
55
 
56
- ### [Data Instances](#data-instances)
57
 
58
  #### biomrc_large_A
59
 
@@ -145,7 +145,7 @@ This example was too long and was cropped:
145
  }
146
  ```
147
 
148
- ### [Data Fields](#data-fields)
149
 
150
  The data fields are the same among all splits.
151
 
@@ -179,7 +179,7 @@ The data fields are the same among all splits.
179
  - `entities_list`: a `list` of `string` features.
180
  - `answer`: a `string` feature.
181
 
182
- ### [Data Splits Sample Size](#data-splits-sample-size)
183
 
184
  #### biomrc_large_A
185
 
@@ -211,49 +211,49 @@ The data fields are the same among all splits.
211
  |-------------|---:|
212
  |biomrc_tiny_A| 30|
213
 
214
- ## [Dataset Creation](#dataset-creation)
215
 
216
- ### [Curation Rationale](#curation-rationale)
217
 
218
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
219
 
220
- ### [Source Data](#source-data)
221
 
222
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
223
 
224
- ### [Annotations](#annotations)
225
 
226
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
227
 
228
- ### [Personal and Sensitive Information](#personal-and-sensitive-information)
229
 
230
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
231
 
232
- ## [Considerations for Using the Data](#considerations-for-using-the-data)
233
 
234
- ### [Social Impact of Dataset](#social-impact-of-dataset)
235
 
236
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
237
 
238
- ### [Discussion of Biases](#discussion-of-biases)
239
 
240
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
241
 
242
- ### [Other Known Limitations](#other-known-limitations)
243
 
244
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
245
 
246
- ## [Additional Information](#additional-information)
247
 
248
- ### [Dataset Curators](#dataset-curators)
249
 
250
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
251
 
252
- ### [Licensing Information](#licensing-information)
253
 
254
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
255
 
256
- ### [Citation Information](#citation-information)
257
 
258
  ```
259
  @inproceedings{pappas-etal-2020-biomrc,
 
27
  - [Citation Information](#citation-information)
28
  - [Contributions](#contributions)
29
 
30
+ ## Dataset Description
31
 
32
  - **Homepage:** [http://nlp.cs.aueb.gr/](http://nlp.cs.aueb.gr/)
33
  - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
37
  - **Size of the generated dataset:** 5539.64 MB
38
  - **Total amount of disk used:** 6765.92 MB
39
 
40
+ ### Dataset Summary
41
 
42
  We introduce BIOMRC, a large-scale cloze-style biomedical MRC dataset. Care was taken to reduce noise, compared to the previous BIOREAD dataset of Pappas et al. (2018). Experiments show that simple heuristics do not perform well on the new dataset and that two neural MRC models that had been tested on BIOREAD perform much better on BIOMRC, indicating that the new dataset is indeed less noisy or at least that its task is more feasible. Non-expert human performance is also higher on the new dataset compared to BIOREAD, and biomedical experts perform even better. We also introduce a new BERT-based MRC model, the best version of which substantially outperforms all other methods tested, reaching or surpassing the accuracy of biomedical experts in some experiments. We make the new dataset available in three different sizes, also releasing our code, and providing a leaderboard.
43
 
44
+ ### Supported Tasks
45
 
46
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
47
 
48
+ ### Languages
49
 
50
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
51
 
52
+ ## Dataset Structure
53
 
54
  We show detailed information for up to 5 configurations of the dataset.
55
 
56
+ ### Data Instances
57
 
58
  #### biomrc_large_A
59
 
 
145
  }
146
  ```
147
 
148
+ ### Data Fields
149
 
150
  The data fields are the same among all splits.
151
 
 
179
  - `entities_list`: a `list` of `string` features.
180
  - `answer`: a `string` feature.
181
 
182
+ ### Data Splits Sample Size
183
 
184
  #### biomrc_large_A
185
 
 
211
  |-------------|---:|
212
  |biomrc_tiny_A| 30|
213
 
214
+ ## Dataset Creation
215
 
216
+ ### Curation Rationale
217
 
218
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
219
 
220
+ ### Source Data
221
 
222
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
223
 
224
+ ### Annotations
225
 
226
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
227
 
228
+ ### Personal and Sensitive Information
229
 
230
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
231
 
232
+ ## Considerations for Using the Data
233
 
234
+ ### Social Impact of Dataset
235
 
236
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
237
 
238
+ ### Discussion of Biases
239
 
240
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
241
 
242
+ ### Other Known Limitations
243
 
244
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
245
 
246
+ ## Additional Information
247
 
248
+ ### Dataset Curators
249
 
250
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
251
 
252
+ ### Licensing Information
253
 
254
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
255
 
256
+ ### Citation Information
257
 
258
  ```
259
  @inproceedings{pappas-etal-2020-biomrc,
biomrc.py CHANGED
@@ -19,11 +19,13 @@
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import json
22
- import logging
23
 
24
  import datasets
25
 
26
 
 
 
 
27
  _CITATION = """\
28
  @inproceedings{pappas-etal-2020-biomrc,
29
  title = "{B}io{MRC}: A Dataset for Biomedical Machine Reading Comprehension",
@@ -59,7 +61,7 @@ class BiomrcConfig(datasets.BuilderConfig):
59
  self.biomrc_setting = "B"
60
  else:
61
  if biomrc_setting.lower() != "a":
62
- logging.warning("Wrong Setting for BioMRC, using Setting A instead.")
63
  self.biomrc_setting = "A"
64
 
65
  if biomrc_version.lower() == "small":
@@ -68,7 +70,7 @@ class BiomrcConfig(datasets.BuilderConfig):
68
  self.biomrc_version = "tiny"
69
  else:
70
  if biomrc_version.lower() != "large":
71
- logging.warning("Wrong version for BioMRC, using BioMRC Large instead.")
72
  self.biomrc_version = "large"
73
 
74
  super(BiomrcConfig, self).__init__(**kwargs)
@@ -190,7 +192,7 @@ class Biomrc(datasets.GeneratorBasedBuilder):
190
 
191
  def _generate_examples(self, filepath):
192
  """This function returns the examples in the raw (text) form."""
193
- logging.info("generating examples from = %s", filepath)
194
  # Id for the biomrc dataset
195
  with open(filepath, encoding="utf-8") as fp:
196
  biomrc = json.load(fp)
 
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import json
 
22
 
23
  import datasets
24
 
25
 
26
+ logger = datasets.logging.get_logger(__name__)
27
+
28
+
29
  _CITATION = """\
30
  @inproceedings{pappas-etal-2020-biomrc,
31
  title = "{B}io{MRC}: A Dataset for Biomedical Machine Reading Comprehension",
 
61
  self.biomrc_setting = "B"
62
  else:
63
  if biomrc_setting.lower() != "a":
64
+ logger.warning("Wrong Setting for BioMRC, using Setting A instead.")
65
  self.biomrc_setting = "A"
66
 
67
  if biomrc_version.lower() == "small":
 
70
  self.biomrc_version = "tiny"
71
  else:
72
  if biomrc_version.lower() != "large":
73
+ logger.warning("Wrong version for BioMRC, using BioMRC Large instead.")
74
  self.biomrc_version = "large"
75
 
76
  super(BiomrcConfig, self).__init__(**kwargs)
 
192
 
193
  def _generate_examples(self, filepath):
194
  """This function returns the examples in the raw (text) form."""
195
+ logger.info("generating examples from = %s", filepath)
196
  # Id for the biomrc dataset
197
  with open(filepath, encoding="utf-8") as fp:
198
  biomrc = json.load(fp)