system HF staff commited on
Commit
f4e9617
1 Parent(s): b449f8e

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. lm1b.py +4 -2
lm1b.py CHANGED
@@ -19,12 +19,14 @@
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import glob
22
- import logging
23
  import os
24
 
25
  import datasets
26
 
27
 
 
 
 
28
  _CITATION = """\
29
  @article{DBLP:journals/corr/ChelbaMSGBK13,
30
  author = {Ciprian Chelba and
@@ -110,7 +112,7 @@ class Lm1b(datasets.GeneratorBasedBuilder):
110
 
111
  def _generate_examples(self, files):
112
  for filepath in files:
113
- logging.info("generating examples from = %s", filepath)
114
  with open(filepath, encoding="utf-8") as f:
115
  for idx, line in enumerate(f):
116
  yield "%s_%d" % (os.path.basename(filepath), idx), {
 
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import glob
 
22
  import os
23
 
24
  import datasets
25
 
26
 
27
+ logger = datasets.logging.get_logger(__name__)
28
+
29
+
30
  _CITATION = """\
31
  @article{DBLP:journals/corr/ChelbaMSGBK13,
32
  author = {Ciprian Chelba and
 
112
 
113
  def _generate_examples(self, files):
114
  for filepath in files:
115
+ logger.info("generating examples from = %s", filepath)
116
  with open(filepath, encoding="utf-8") as f:
117
  for idx, line in enumerate(f):
118
  yield "%s_%d" % (os.path.basename(filepath), idx), {