Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
sentiment-classification
Languages:
Turkish
Size:
100K - 1M
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
turkish_product_reviews.py
CHANGED
@@ -2,12 +2,14 @@
|
|
2 |
|
3 |
from __future__ import absolute_import, division, print_function
|
4 |
|
5 |
-
import logging
|
6 |
import os
|
7 |
|
8 |
import datasets
|
9 |
|
10 |
|
|
|
|
|
|
|
11 |
_CITATION = ""
|
12 |
|
13 |
_DESCRIPTION = """
|
@@ -49,7 +51,7 @@ class TurkishProductReviews(datasets.GeneratorBasedBuilder):
|
|
49 |
|
50 |
def _generate_examples(self, filepath, filenames):
|
51 |
"""Generate TurkishProductReviews examples."""
|
52 |
-
|
53 |
for f in sorted(filenames):
|
54 |
filename, file_extension = os.path.splitext(f)
|
55 |
label = "negative" if file_extension == "neg" else "positive"
|
|
|
2 |
|
3 |
from __future__ import absolute_import, division, print_function
|
4 |
|
|
|
5 |
import os
|
6 |
|
7 |
import datasets
|
8 |
|
9 |
|
10 |
+
logger = datasets.logging.get_logger(__name__)
|
11 |
+
|
12 |
+
|
13 |
_CITATION = ""
|
14 |
|
15 |
_DESCRIPTION = """
|
|
|
51 |
|
52 |
def _generate_examples(self, filepath, filenames):
|
53 |
"""Generate TurkishProductReviews examples."""
|
54 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
55 |
for f in sorted(filenames):
|
56 |
filename, file_extension = os.path.splitext(f)
|
57 |
label = "negative" if file_extension == "neg" else "positive"
|