Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
sentiment-classification
Languages:
Turkish
Size:
100K - 1M
License:
parquet-converter
commited on
Commit
•
7c31cb3
1
Parent(s):
e75c687
Update parquet files
Browse files- .gitattributes +0 -27
- README.md +0 -173
- dataset_infos.json +0 -1
- default/turkish_product_reviews-train.parquet +3 -0
- turkish_product_reviews.py +0 -60
.gitattributes
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,173 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- found
|
4 |
-
language_creators:
|
5 |
-
- found
|
6 |
-
language:
|
7 |
-
- tr
|
8 |
-
license:
|
9 |
-
- unknown
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
size_categories:
|
13 |
-
- 100K<n<1M
|
14 |
-
source_datasets:
|
15 |
-
- original
|
16 |
-
task_categories:
|
17 |
-
- text-classification
|
18 |
-
task_ids:
|
19 |
-
- sentiment-classification
|
20 |
-
paperswithcode_id: null
|
21 |
-
pretty_name: Turkish Product Reviews
|
22 |
-
dataset_info:
|
23 |
-
features:
|
24 |
-
- name: sentence
|
25 |
-
dtype: string
|
26 |
-
- name: sentiment
|
27 |
-
dtype:
|
28 |
-
class_label:
|
29 |
-
names:
|
30 |
-
0: negative
|
31 |
-
1: positive
|
32 |
-
splits:
|
33 |
-
- name: train
|
34 |
-
num_bytes: 43369710
|
35 |
-
num_examples: 235165
|
36 |
-
download_size: 13184332
|
37 |
-
dataset_size: 43369710
|
38 |
-
---
|
39 |
-
|
40 |
-
# Dataset Card for Turkish Product Reviews
|
41 |
-
|
42 |
-
## Table of Contents
|
43 |
-
- [Dataset Description](#dataset-description)
|
44 |
-
- [Dataset Summary](#dataset-summary)
|
45 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
46 |
-
- [Languages](#languages)
|
47 |
-
- [Dataset Structure](#dataset-structure)
|
48 |
-
- [Data Instances](#data-instances)
|
49 |
-
- [Data Fields](#data-fields)
|
50 |
-
- [Data Splits](#data-splits)
|
51 |
-
- [Dataset Creation](#dataset-creation)
|
52 |
-
- [Curation Rationale](#curation-rationale)
|
53 |
-
- [Source Data](#source-data)
|
54 |
-
- [Annotations](#annotations)
|
55 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
56 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
57 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
58 |
-
- [Discussion of Biases](#discussion-of-biases)
|
59 |
-
- [Other Known Limitations](#other-known-limitations)
|
60 |
-
- [Additional Information](#additional-information)
|
61 |
-
- [Dataset Curators](#dataset-curators)
|
62 |
-
- [Licensing Information](#licensing-information)
|
63 |
-
- [Citation Information](#citation-information)
|
64 |
-
- [Contributions](#contributions)
|
65 |
-
|
66 |
-
## Dataset Description
|
67 |
-
|
68 |
-
- **Repository:** [turkish-text-data](https://github.com/fthbrmnby/turkish-text-data)
|
69 |
-
- **Point of Contact:** [Fatih Barmanbay](https://github.com/fthbrmnby)
|
70 |
-
|
71 |
-
### Dataset Summary
|
72 |
-
|
73 |
-
This Turkish Product Reviews Dataset contains 235.165 product reviews collected online. There are 220.284 positive, 14881 negative reviews.
|
74 |
-
|
75 |
-
### Supported Tasks and Leaderboards
|
76 |
-
|
77 |
-
[More Information Needed]
|
78 |
-
|
79 |
-
### Languages
|
80 |
-
|
81 |
-
The dataset is based on Turkish.
|
82 |
-
|
83 |
-
## Dataset Structure
|
84 |
-
|
85 |
-
### Data Instances
|
86 |
-
|
87 |
-
**Example 1:**
|
88 |
-
|
89 |
-
**sentence:** beklentimin altında bir ürün kaliteli değil
|
90 |
-
|
91 |
-
**sentiment:** 0 (negative)
|
92 |
-
|
93 |
-
**Example 2:**
|
94 |
-
|
95 |
-
**sentence:** fiyat ve performans olarak gayet iyi
|
96 |
-
|
97 |
-
**sentiment:** 1 (positive)
|
98 |
-
|
99 |
-
|
100 |
-
### Data Fields
|
101 |
-
|
102 |
-
- **sentence**(string) : Contatins turkish product review
|
103 |
-
- **sentiment**(int) : 0 (negative) or 1 (positive)
|
104 |
-
|
105 |
-
### Data Splits
|
106 |
-
|
107 |
-
It is not divided into Train set and Test set.
|
108 |
-
|
109 |
-
## Dataset Creation
|
110 |
-
|
111 |
-
### Curation Rationale
|
112 |
-
|
113 |
-
[More Information Needed]
|
114 |
-
|
115 |
-
### Source Data
|
116 |
-
|
117 |
-
[More Information Needed]
|
118 |
-
|
119 |
-
#### Initial Data Collection and Normalization
|
120 |
-
|
121 |
-
[More Information Needed]
|
122 |
-
|
123 |
-
#### Who are the source language producers?
|
124 |
-
|
125 |
-
[More Information Needed]
|
126 |
-
|
127 |
-
### Annotations
|
128 |
-
|
129 |
-
The dataset does not contain any additional annotations.
|
130 |
-
|
131 |
-
#### Annotation process
|
132 |
-
|
133 |
-
[More Information Needed]
|
134 |
-
|
135 |
-
#### Who are the annotators?
|
136 |
-
|
137 |
-
[More Information Needed]
|
138 |
-
|
139 |
-
### Personal and Sensitive Information
|
140 |
-
|
141 |
-
[More Information Needed]
|
142 |
-
|
143 |
-
## Considerations for Using the Data
|
144 |
-
|
145 |
-
### Social Impact of Dataset
|
146 |
-
|
147 |
-
[More Information Needed]
|
148 |
-
|
149 |
-
### Discussion of Biases
|
150 |
-
|
151 |
-
[More Information Needed]
|
152 |
-
|
153 |
-
### Other Known Limitations
|
154 |
-
|
155 |
-
[More Information Needed]
|
156 |
-
|
157 |
-
## Additional Information
|
158 |
-
|
159 |
-
### Dataset Curators
|
160 |
-
|
161 |
-
The dataset was created by [Fatih Barmanbay](https://github.com/fthbrmnby).
|
162 |
-
|
163 |
-
### Licensing Information
|
164 |
-
|
165 |
-
The data is under the [CC-BY-SA-4.0 License](https://github.com/fthbrmnby/turkish-text-data/blob/master/LICENCE)
|
166 |
-
|
167 |
-
### Citation Information
|
168 |
-
|
169 |
-
No citation available for this dataset.
|
170 |
-
|
171 |
-
### Contributions
|
172 |
-
|
173 |
-
Thanks to [@basakbuluz](https://github.com/basakbuluz) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
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}}
|
|
|
|
default/turkish_product_reviews-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:55285d992b32217ad306cb82c78d71c6963c343d4d20189a1a2a41cf38bd417c
|
3 |
+
size 24354761
|
turkish_product_reviews.py
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
"""Turkish Product Reviews"""
|
2 |
-
|
3 |
-
|
4 |
-
import os
|
5 |
-
|
6 |
-
import datasets
|
7 |
-
from datasets.tasks import TextClassification
|
8 |
-
|
9 |
-
|
10 |
-
logger = datasets.logging.get_logger(__name__)
|
11 |
-
|
12 |
-
|
13 |
-
_CITATION = ""
|
14 |
-
|
15 |
-
_DESCRIPTION = """
|
16 |
-
Turkish Product Reviews.
|
17 |
-
This repository contains 235.165 product reviews collected online. There are 220.284 positive, 14881 negative reviews.
|
18 |
-
"""
|
19 |
-
|
20 |
-
_URL = "https://github.com/fthbrmnby/turkish-text-data/raw/master/reviews.tar.gz"
|
21 |
-
_FILES_PATHS = ["reviews.pos", "reviews.neg"]
|
22 |
-
|
23 |
-
_HOMEPAGE = "https://github.com/fthbrmnby/turkish-text-data"
|
24 |
-
|
25 |
-
|
26 |
-
class TurkishProductReviews(datasets.GeneratorBasedBuilder):
|
27 |
-
VERSION = datasets.Version("1.0.0")
|
28 |
-
|
29 |
-
def _info(self):
|
30 |
-
return datasets.DatasetInfo(
|
31 |
-
description=_DESCRIPTION,
|
32 |
-
features=datasets.Features(
|
33 |
-
{
|
34 |
-
"sentence": datasets.Value("string"),
|
35 |
-
"sentiment": datasets.ClassLabel(names=["negative", "positive"]),
|
36 |
-
}
|
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):
|
44 |
-
"""Returns SplitGenerators."""
|
45 |
-
archive = dl_manager.download(_URL)
|
46 |
-
return [
|
47 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"files": dl_manager.iter_archive(archive)}),
|
48 |
-
]
|
49 |
-
|
50 |
-
def _generate_examples(self, files):
|
51 |
-
"""Generate TurkishProductReviews examples."""
|
52 |
-
for file_idx, (path, f) in enumerate(files):
|
53 |
-
_, file_extension = os.path.splitext(path)
|
54 |
-
label = "negative" if file_extension == ".neg" else "positive"
|
55 |
-
for idx, line in enumerate(f):
|
56 |
-
line = line.decode("utf-8").strip()
|
57 |
-
yield f"{file_idx}_{idx}", {
|
58 |
-
"sentence": line,
|
59 |
-
"sentiment": label,
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|