system HF staff commited on
Commit
a4da21d
1 Parent(s): 2e1f8ad

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. cc_news.py +4 -2
cc_news.py CHANGED
@@ -19,12 +19,14 @@ from __future__ import absolute_import, division, print_function
19
 
20
  import glob
21
  import json
22
- import logging
23
  import os
24
 
25
  import datasets
26
 
27
 
 
 
 
28
  _DESCRIPTION = """\
29
  CC-News containing news articles from news sites all over the world \
30
  The data is available on AWS S3 in the Common Crawl bucket at /crawl-data/CC-NEWS/. \
@@ -97,7 +99,7 @@ class CCNews(datasets.GeneratorBasedBuilder):
97
  ]
98
 
99
  def _generate_examples(self, directory):
100
- logging.info("CC-News dataset: generating examples from = %s", directory)
101
  glob_target = os.path.join(directory, "**/*.json")
102
  article_files = glob.glob(glob_target, recursive=True)
103
  article_files = sorted(article_files)
 
19
 
20
  import glob
21
  import json
 
22
  import os
23
 
24
  import datasets
25
 
26
 
27
+ logger = datasets.logging.get_logger(__name__)
28
+
29
+
30
  _DESCRIPTION = """\
31
  CC-News containing news articles from news sites all over the world \
32
  The data is available on AWS S3 in the Common Crawl bucket at /crawl-data/CC-NEWS/. \
 
99
  ]
100
 
101
  def _generate_examples(self, directory):
102
+ logger.info("CC-News dataset: generating examples from = %s", directory)
103
  glob_target = os.path.join(directory, "**/*.json")
104
  article_files = glob.glob(glob_target, recursive=True)
105
  article_files = sorted(article_files)