Datasets:
Tasks:
Question Answering
Sub-tasks:
multiple-choice-qa
Languages:
English
Size:
10K<n<100K
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
dream.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 |
@article{sundream2018,
|
29 |
title={{DREAM}: A Challenge Dataset and Models for Dialogue-Based Reading Comprehension},
|
@@ -103,7 +105,7 @@ class Dream(datasets.GeneratorBasedBuilder):
|
|
103 |
|
104 |
def _generate_examples(self, filepath):
|
105 |
"""This function returns the examples in the raw (text) form."""
|
106 |
-
|
107 |
with open(filepath, encoding="utf-8") as f:
|
108 |
dialogues = json.load(f)
|
109 |
counter = 0
|
|
|
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 |
@article{sundream2018,
|
31 |
title={{DREAM}: A Challenge Dataset and Models for Dialogue-Based Reading Comprehension},
|
|
|
105 |
|
106 |
def _generate_examples(self, filepath):
|
107 |
"""This function returns the examples in the raw (text) form."""
|
108 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
109 |
with open(filepath, encoding="utf-8") as f:
|
110 |
dialogues = json.load(f)
|
111 |
counter = 0
|