Datasets:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- offenseval2020_tr.py +4 -2
offenseval2020_tr.py
CHANGED
|
@@ -5,12 +5,14 @@
|
|
| 5 |
from __future__ import absolute_import, division, print_function
|
| 6 |
|
| 7 |
import csv
|
| 8 |
-
import logging
|
| 9 |
import os
|
| 10 |
|
| 11 |
import datasets
|
| 12 |
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
_CITATION = """\
|
| 15 |
@InProceedings{coltekin2020lrec,
|
| 16 |
author = {Cagri Coltekin},
|
|
@@ -100,7 +102,7 @@ class Offenseval2020TR(datasets.GeneratorBasedBuilder):
|
|
| 100 |
|
| 101 |
def _generate_examples(self, filepath, labelpath):
|
| 102 |
"""Generate OffensEval2020TR examples."""
|
| 103 |
-
|
| 104 |
|
| 105 |
if labelpath:
|
| 106 |
with open(filepath, encoding="utf-8") as f:
|
|
|
|
| 5 |
from __future__ import absolute_import, division, print_function
|
| 6 |
|
| 7 |
import csv
|
|
|
|
| 8 |
import os
|
| 9 |
|
| 10 |
import datasets
|
| 11 |
|
| 12 |
|
| 13 |
+
logger = datasets.logging.get_logger(__name__)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
_CITATION = """\
|
| 17 |
@InProceedings{coltekin2020lrec,
|
| 18 |
author = {Cagri Coltekin},
|
|
|
|
| 102 |
|
| 103 |
def _generate_examples(self, filepath, labelpath):
|
| 104 |
"""Generate OffensEval2020TR examples."""
|
| 105 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
| 106 |
|
| 107 |
if labelpath:
|
| 108 |
with open(filepath, encoding="utf-8") as f:
|