system HF staff commited on
Commit
fb574f0
1 Parent(s): 3770864

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. kilt_tasks.py +4 -2
kilt_tasks.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
  @inproceedings{fb_kilt,
29
  author = {Fabio Petroni and
@@ -202,7 +204,7 @@ class KiltTasks(datasets.GeneratorBasedBuilder):
202
  ]
203
 
204
  def _generate_examples(self, filepath):
205
- logging.info("generating examples from = %s", filepath)
206
  with open(filepath, encoding="utf-8") as f:
207
  for idx, line in enumerate(f):
208
  article = json.loads(line.strip())
 
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
  @inproceedings{fb_kilt,
31
  author = {Fabio Petroni and
 
204
  ]
205
 
206
  def _generate_examples(self, filepath):
207
+ logger.info("generating examples from = %s", filepath)
208
  with open(filepath, encoding="utf-8") as f:
209
  for idx, line in enumerate(f):
210
  article = json.loads(line.strip())