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.8.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.8.0
- dataset_infos.json +1 -1
- turkish_product_reviews.py +2 -0
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"default": {"description": "\nTurkish Product Reviews.\nThis repository contains 235.165 product reviews collected online. There are 220.284 positive, 14881 negative reviews.\n", "citation": "", "homepage": "https://github.com/fthbrmnby/turkish-text-data", "license": "", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}, "sentiment": {"num_classes": 2, "names": ["negative", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "turkish_product_reviews", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 43369710, "num_examples": 235165, "dataset_name": "turkish_product_reviews"}}, "download_checksums": {"https://github.com/fthbrmnby/turkish-text-data/raw/master/reviews.tar.gz": {"num_bytes": 13184332, "checksum": "dd1013e7413cd5d2dd897ea38c067302667a942e44ecb5e3cb36dea55aeeb09f"}}, "download_size": 13184332, "post_processing_size": null, "dataset_size": 43369710, "size_in_bytes": 56554042}}
|
|
|
1 |
+
{"default": {"description": "\nTurkish Product Reviews.\nThis repository contains 235.165 product reviews collected online. There are 220.284 positive, 14881 negative reviews.\n", "citation": "", "homepage": "https://github.com/fthbrmnby/turkish-text-data", "license": "", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}, "sentiment": {"num_classes": 2, "names": ["negative", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "sentence", "label_column": "sentiment", "labels": ["negative", "positive"]}], "builder_name": "turkish_product_reviews", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 43369710, "num_examples": 235165, "dataset_name": "turkish_product_reviews"}}, "download_checksums": {"https://github.com/fthbrmnby/turkish-text-data/raw/master/reviews.tar.gz": {"num_bytes": 13184332, "checksum": "dd1013e7413cd5d2dd897ea38c067302667a942e44ecb5e3cb36dea55aeeb09f"}}, "download_size": 13184332, "post_processing_size": null, "dataset_size": 43369710, "size_in_bytes": 56554042}}
|
turkish_product_reviews.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
import os
|
5 |
|
6 |
import datasets
|
|
|
7 |
|
8 |
|
9 |
logger = datasets.logging.get_logger(__name__)
|
@@ -36,6 +37,7 @@ class TurkishProductReviews(datasets.GeneratorBasedBuilder):
|
|
36 |
),
|
37 |
citation=_CITATION,
|
38 |
homepage=_HOMEPAGE,
|
|
|
39 |
)
|
40 |
|
41 |
def _split_generators(self, dl_manager):
|
|
|
4 |
import os
|
5 |
|
6 |
import datasets
|
7 |
+
from datasets.tasks import TextClassification
|
8 |
|
9 |
|
10 |
logger = datasets.logging.get_logger(__name__)
|
|
|
37 |
),
|
38 |
citation=_CITATION,
|
39 |
homepage=_HOMEPAGE,
|
40 |
+
task_templates=[TextClassification(text_column="sentence", label_column="sentiment")],
|
41 |
)
|
42 |
|
43 |
def _split_generators(self, dl_manager):
|