Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- id_clickbait.py +4 -2
id_clickbait.py
CHANGED
@@ -18,12 +18,14 @@ from __future__ import absolute_import, division, print_function
|
|
18 |
|
19 |
import csv
|
20 |
import glob
|
21 |
-
import logging
|
22 |
import os
|
23 |
|
24 |
import datasets
|
25 |
|
26 |
|
|
|
|
|
|
|
27 |
_CITATION = """\
|
28 |
@inproceedings{id_clickbait,
|
29 |
author = {Andika William, Yunita Sari},
|
@@ -123,7 +125,7 @@ class IdClickbait(datasets.GeneratorBasedBuilder):
|
|
123 |
]
|
124 |
|
125 |
def _generate_examples(self, article_dir, split):
|
126 |
-
|
127 |
id = 0
|
128 |
for path in sorted(glob.glob(os.path.join(article_dir, "**/*.csv"), recursive=True)):
|
129 |
with open(path, encoding="utf-8-sig", newline="") as f:
|
|
|
18 |
|
19 |
import csv
|
20 |
import glob
|
|
|
21 |
import os
|
22 |
|
23 |
import datasets
|
24 |
|
25 |
|
26 |
+
logger = datasets.logging.get_logger(__name__)
|
27 |
+
|
28 |
+
|
29 |
_CITATION = """\
|
30 |
@inproceedings{id_clickbait,
|
31 |
author = {Andika William, Yunita Sari},
|
|
|
125 |
]
|
126 |
|
127 |
def _generate_examples(self, article_dir, split):
|
128 |
+
logger.info("⏳ Generating %s examples from = %s", split, article_dir)
|
129 |
id = 0
|
130 |
for path in sorted(glob.glob(os.path.join(article_dir, "**/*.csv"), recursive=True)):
|
131 |
with open(path, encoding="utf-8-sig", newline="") as f:
|