Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
system HF staff commited on
Commit
7951da4
1 Parent(s): 7158a4f

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. adversarial_qa.py +4 -2
adversarial_qa.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
  @article{bartolo2020beat,
30
  author = {Bartolo, Max and Roberts, Alastair and Welbl, Johannes and Riedel, Sebastian and Stenetorp, Pontus},
@@ -165,7 +167,7 @@ class AdversarialQA(datasets.GeneratorBasedBuilder):
165
 
166
  def _generate_examples(self, filepath, split, model_in_the_loop):
167
  """This function returns the examples in the raw (text) form."""
168
- logging.info("generating examples from = %s", filepath)
169
  with open(filepath, encoding="utf-8") as f:
170
  squad = json.load(f)
171
  for article in squad["data"]:
 
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
  @article{bartolo2020beat,
32
  author = {Bartolo, Max and Roberts, Alastair and Welbl, Johannes and Riedel, Sebastian and Stenetorp, Pontus},
 
167
 
168
  def _generate_examples(self, filepath, split, model_in_the_loop):
169
  """This function returns the examples in the raw (text) form."""
170
+ logger.info("generating examples from = %s", filepath)
171
  with open(filepath, encoding="utf-8") as f:
172
  squad = json.load(f)
173
  for article in squad["data"]: