system HF staff commited on
Commit
c914356
1 Parent(s): 11f372b

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. covid_qa_deepset.py +4 -2
covid_qa_deepset.py CHANGED
@@ -17,11 +17,13 @@
17
  from __future__ import absolute_import, division, print_function
18
 
19
  import json
20
- import logging
21
 
22
  import datasets
23
 
24
 
 
 
 
25
  _CITATION = """\
26
  @inproceedings{moller2020covid,
27
  title={COVID-QA: A Question Answering Dataset for COVID-19},
@@ -90,7 +92,7 @@ class CovidQADeepset(datasets.GeneratorBasedBuilder):
90
 
91
  def _generate_examples(self, filepath):
92
  """This function returns the examples in the raw (text) form."""
93
- logging.info("generating examples from = %s", filepath)
94
  with open(filepath, encoding="utf-8") as f:
95
  covid_qa = json.load(f)
96
  for article in covid_qa["data"]:
 
17
  from __future__ import absolute_import, division, print_function
18
 
19
  import json
 
20
 
21
  import datasets
22
 
23
 
24
+ logger = datasets.logging.get_logger(__name__)
25
+
26
+
27
  _CITATION = """\
28
  @inproceedings{moller2020covid,
29
  title={COVID-QA: A Question Answering Dataset for COVID-19},
 
92
 
93
  def _generate_examples(self, filepath):
94
  """This function returns the examples in the raw (text) form."""
95
+ logger.info("generating examples from = %s", filepath)
96
  with open(filepath, encoding="utf-8") as f:
97
  covid_qa = json.load(f)
98
  for article in covid_qa["data"]: