Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
crowdsourced
Source Datasets:
original
License:
system HF staff commited on
Commit
73a9965
1 Parent(s): b799ab7

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. mocha.py +4 -2
mocha.py CHANGED
@@ -19,12 +19,14 @@
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import json
22
- import logging
23
  import os
24
 
25
  import datasets
26
 
27
 
 
 
 
28
  _CITATION = """\
29
  @inproceedings{Chen2020MOCHAAD,
30
  author={Anthony Chen and Gabriel Stanovsky and Sameer Singh and Matt Gardner},
@@ -104,7 +106,7 @@ class Mocha(datasets.GeneratorBasedBuilder):
104
 
105
  def _generate_examples(self, filepath, split):
106
  """This function returns the examples in the raw (text) form."""
107
- logging.info("Generating examples from = %s", filepath)
108
  with open(filepath, encoding="utf-8") as f:
109
  mocha = json.load(f)
110
  for constituent_dataset, samples in mocha.items():
 
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import json
 
22
  import os
23
 
24
  import datasets
25
 
26
 
27
+ logger = datasets.logging.get_logger(__name__)
28
+
29
+
30
  _CITATION = """\
31
  @inproceedings{Chen2020MOCHAAD,
32
  author={Anthony Chen and Gabriel Stanovsky and Sameer Singh and Matt Gardner},
 
106
 
107
  def _generate_examples(self, filepath, split):
108
  """This function returns the examples in the raw (text) form."""
109
+ logger.info("Generating examples from = %s", filepath)
110
  with open(filepath, encoding="utf-8") as f:
111
  mocha = json.load(f)
112
  for constituent_dataset, samples in mocha.items():