Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
expert-generated
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
5dc5d42
1 Parent(s): 1f2fa45

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 (1) hide show
  1. dream.py +4 -2
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
- logging.info("⏳ Generating examples from = %s", filepath)
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