Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
sentiment-classification
Languages:
Arabic
Size:
1K - 10K
License:
parquet-converter
commited on
Commit
•
63b61c8
1
Parent(s):
18cafba
Update parquet files
Browse files- .gitattributes +0 -27
- README.md +0 -198
- ar_res_reviews.py +0 -85
- dataset_infos.json +0 -1
- default/ar_res_reviews-train.parquet +3 -0
.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,198 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- found
|
4 |
-
language_creators:
|
5 |
-
- found
|
6 |
-
language:
|
7 |
-
- ar
|
8 |
-
license:
|
9 |
-
- unknown
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
size_categories:
|
13 |
-
- 1K<n<10K
|
14 |
-
source_datasets:
|
15 |
-
- original
|
16 |
-
task_categories:
|
17 |
-
- text-classification
|
18 |
-
task_ids:
|
19 |
-
- sentiment-classification
|
20 |
-
paperswithcode_id: null
|
21 |
-
pretty_name: ArRestReviews
|
22 |
-
dataset_info:
|
23 |
-
features:
|
24 |
-
- name: polarity
|
25 |
-
dtype:
|
26 |
-
class_label:
|
27 |
-
names:
|
28 |
-
0: negative
|
29 |
-
1: positive
|
30 |
-
- name: text
|
31 |
-
dtype: string
|
32 |
-
- name: restaurant_id
|
33 |
-
dtype: string
|
34 |
-
- name: user_id
|
35 |
-
dtype: string
|
36 |
-
splits:
|
37 |
-
- name: train
|
38 |
-
num_bytes: 3617097
|
39 |
-
num_examples: 8364
|
40 |
-
download_size: 3503230
|
41 |
-
dataset_size: 3617097
|
42 |
-
---
|
43 |
-
|
44 |
-
# Dataset Card for ArRestReviews
|
45 |
-
|
46 |
-
## Table of Contents
|
47 |
-
- [Dataset Description](#dataset-description)
|
48 |
-
- [Dataset Summary](#dataset-summary)
|
49 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
50 |
-
- [Languages](#languages)
|
51 |
-
- [Dataset Structure](#dataset-structure)
|
52 |
-
- [Data Instances](#data-instances)
|
53 |
-
- [Data Fields](#data-fields)
|
54 |
-
- [Data Splits](#data-splits)
|
55 |
-
- [Dataset Creation](#dataset-creation)
|
56 |
-
- [Curation Rationale](#curation-rationale)
|
57 |
-
- [Source Data](#source-data)
|
58 |
-
- [Annotations](#annotations)
|
59 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
60 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
61 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
62 |
-
- [Discussion of Biases](#discussion-of-biases)
|
63 |
-
- [Other Known Limitations](#other-known-limitations)
|
64 |
-
- [Additional Information](#additional-information)
|
65 |
-
- [Dataset Curators](#dataset-curators)
|
66 |
-
- [Licensing Information](#licensing-information)
|
67 |
-
- [Citation Information](#citation-information)
|
68 |
-
- [Contributions](#contributions)
|
69 |
-
|
70 |
-
## Dataset Description
|
71 |
-
|
72 |
-
- **Homepage:** [Large Arabic Sentiment Analysis Resources](https://github.com/hadyelsahar/large-arabic-sentiment-analysis-resouces)
|
73 |
-
- **Repository:** [Large Arabic Sentiment Analysis Resources](https://github.com/hadyelsahar/large-arabic-sentiment-analysis-resouces)
|
74 |
-
- **Paper:** [ Building Large Arabic Multi-domain Resources for Sentiment Analysis](https://github.com/hadyelsahar/large-arabic-sentiment-analysis-resouces/blob/master/Paper%20-%20Building%20Large%20Arabic%20Multi-domain%20Resources%20for%20Sentiment%20Analysis.pdf)
|
75 |
-
- **Point of Contact:** [hady elsahar](hadyelsahar@gmail.com)
|
76 |
-
|
77 |
-
### Dataset Summary
|
78 |
-
|
79 |
-
Dataset of 8364 restaurant reviews from qaym.com in Arabic for sentiment analysis
|
80 |
-
|
81 |
-
### Supported Tasks and Leaderboards
|
82 |
-
|
83 |
-
[More Information Needed]
|
84 |
-
|
85 |
-
### Languages
|
86 |
-
|
87 |
-
The dataset is based on Arabic.
|
88 |
-
|
89 |
-
## Dataset Structure
|
90 |
-
|
91 |
-
### Data Instances
|
92 |
-
|
93 |
-
A typical data point comprises of the following:
|
94 |
-
|
95 |
-
- "polarity": which is a string value of either 0 or 1 indicating the sentiment around the review
|
96 |
-
|
97 |
-
- "text": is the review plain text of a restaurant in Arabic
|
98 |
-
|
99 |
-
- "restaurant_id": the restaurant ID on the website
|
100 |
-
|
101 |
-
- "user_id": the user ID on the website
|
102 |
-
|
103 |
-
example:
|
104 |
-
```
|
105 |
-
{
|
106 |
-
'polarity': 0, # negative
|
107 |
-
'restaurant_id': '1412',
|
108 |
-
'text': 'عادي جدا مامن زود',
|
109 |
-
'user_id': '21294'
|
110 |
-
}
|
111 |
-
```
|
112 |
-
|
113 |
-
### Data Fields
|
114 |
-
|
115 |
-
- "polarity": is a string value of either 0 or 1 indicating the sentiment around the review
|
116 |
-
|
117 |
-
- "text": is the review plain text of a restaurant in Arabic
|
118 |
-
|
119 |
-
- "restaurant_id": the restaurant ID on the website (string)
|
120 |
-
|
121 |
-
- "user_id": the user ID on the website (string)
|
122 |
-
|
123 |
-
### Data Splits
|
124 |
-
|
125 |
-
The dataset is not split.
|
126 |
-
|
127 |
-
## Dataset Creation
|
128 |
-
|
129 |
-
### Curation Rationale
|
130 |
-
|
131 |
-
[More Information Needed]
|
132 |
-
|
133 |
-
### Source Data
|
134 |
-
|
135 |
-
[More Information Needed]
|
136 |
-
|
137 |
-
#### Initial Data Collection and Normalization
|
138 |
-
|
139 |
-
Contains 8364 restaurant reviews from qaym.com
|
140 |
-
|
141 |
-
#### Who are the source language producers?
|
142 |
-
|
143 |
-
From tweeter.
|
144 |
-
|
145 |
-
### Annotations
|
146 |
-
|
147 |
-
The polarity field provides a label of 1 or -1 pertaining to the sentiment of the review
|
148 |
-
|
149 |
-
#### Annotation process
|
150 |
-
|
151 |
-
[More Information Needed]
|
152 |
-
|
153 |
-
#### Who are the annotators?
|
154 |
-
|
155 |
-
[More Information Needed]
|
156 |
-
|
157 |
-
### Personal and Sensitive Information
|
158 |
-
|
159 |
-
[More Information Needed]
|
160 |
-
|
161 |
-
## Considerations for Using the Data
|
162 |
-
|
163 |
-
### Discussion of Social Impact and Biases
|
164 |
-
|
165 |
-
[More Information Needed]
|
166 |
-
|
167 |
-
### Other Known Limitations
|
168 |
-
|
169 |
-
[More Information Needed]
|
170 |
-
|
171 |
-
## Additional Information
|
172 |
-
|
173 |
-
### Dataset Curators
|
174 |
-
|
175 |
-
[More Information Needed]
|
176 |
-
|
177 |
-
### Licensing Information
|
178 |
-
|
179 |
-
[More Information Needed]
|
180 |
-
|
181 |
-
### Citation Information
|
182 |
-
|
183 |
-
@InProceedings{10.1007/978-3-319-18117-2_2,
|
184 |
-
author="ElSahar, Hady
|
185 |
-
and El-Beltagy, Samhaa R.",
|
186 |
-
editor="Gelbukh, Alexander",
|
187 |
-
title="Building Large Arabic Multi-domain Resources for Sentiment Analysis",
|
188 |
-
booktitle="Computational Linguistics and Intelligent Text Processing",
|
189 |
-
year="2015",
|
190 |
-
publisher="Springer International Publishing",
|
191 |
-
address="Cham",
|
192 |
-
pages="23--34",
|
193 |
-
isbn="978-3-319-18117-2"
|
194 |
-
}
|
195 |
-
|
196 |
-
### Contributions
|
197 |
-
|
198 |
-
Thanks to [@abdulelahsm](https://github.com/abdulelahsm) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ar_res_reviews.py
DELETED
@@ -1,85 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
"""Dataset of 8364 restaurant reviews scrapped from qaym.com in Arabic for sentiment analysis"""
|
16 |
-
|
17 |
-
|
18 |
-
import csv
|
19 |
-
|
20 |
-
import datasets
|
21 |
-
|
22 |
-
|
23 |
-
_CITATION = """\
|
24 |
-
@InProceedings{10.1007/978-3-319-18117-2_2,
|
25 |
-
author="ElSahar, Hady
|
26 |
-
and El-Beltagy, Samhaa R.",
|
27 |
-
editor="Gelbukh, Alexander",
|
28 |
-
title="Building Large Arabic Multi-domain Resources for Sentiment Analysis",
|
29 |
-
booktitle="Computational Linguistics and Intelligent Text Processing",
|
30 |
-
year="2015",
|
31 |
-
publisher="Springer International Publishing",
|
32 |
-
address="Cham",
|
33 |
-
pages="23--34",
|
34 |
-
isbn="978-3-319-18117-2"
|
35 |
-
}
|
36 |
-
"""
|
37 |
-
|
38 |
-
_DESCRIPTION = """\
|
39 |
-
Dataset of 8364 restaurant reviews scrapped from qaym.com in Arabic for sentiment analysis
|
40 |
-
"""
|
41 |
-
|
42 |
-
_HOMEPAGE = "https://github.com/hadyelsahar/large-arabic-sentiment-analysis-resouces"
|
43 |
-
|
44 |
-
_DOWNLOAD_URL = (
|
45 |
-
"https://raw.githubusercontent.com/hadyelsahar/large-arabic-sentiment-analysis-resouces/master/datasets/RES1.csv"
|
46 |
-
)
|
47 |
-
|
48 |
-
|
49 |
-
class ArResReviews(datasets.GeneratorBasedBuilder):
|
50 |
-
"""Dataset of 8364 restaurant reviews in Arabic for sentiment analysis"""
|
51 |
-
|
52 |
-
def _info(self):
|
53 |
-
return datasets.DatasetInfo(
|
54 |
-
description=_DESCRIPTION,
|
55 |
-
features=datasets.Features(
|
56 |
-
{
|
57 |
-
"polarity": datasets.ClassLabel(names=["negative", "positive"]),
|
58 |
-
"text": datasets.Value("string"),
|
59 |
-
"restaurant_id": datasets.Value("string"),
|
60 |
-
"user_id": datasets.Value("string"),
|
61 |
-
}
|
62 |
-
),
|
63 |
-
homepage=_HOMEPAGE,
|
64 |
-
citation=_CITATION,
|
65 |
-
)
|
66 |
-
|
67 |
-
def _split_generators(self, dl_manager):
|
68 |
-
"""Returns SplitGenerators."""
|
69 |
-
|
70 |
-
data_dir = dl_manager.download_and_extract(_DOWNLOAD_URL)
|
71 |
-
return [
|
72 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),
|
73 |
-
]
|
74 |
-
|
75 |
-
def _generate_examples(self, filepath):
|
76 |
-
"""Generate arabic restaurant reviews examples."""
|
77 |
-
with open(filepath, encoding="utf-8") as csv_file:
|
78 |
-
next(csv_file)
|
79 |
-
csv_reader = csv.reader(
|
80 |
-
csv_file, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True
|
81 |
-
)
|
82 |
-
for id_, row in enumerate(csv_reader):
|
83 |
-
polarity, text, restaurant_id, user_id = row
|
84 |
-
polarity = "negative" if polarity == "-1" else "positive"
|
85 |
-
yield id_, {"polarity": polarity, "text": text, "restaurant_id": restaurant_id, "user_id": user_id}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"default": {"description": "Dataset of 8364 restaurant reviews scrapped from qaym.com in Arabic for sentiment analysis\n", "citation": "@InProceedings{10.1007/978-3-319-18117-2_2,\nauthor=\"ElSahar, Hady\nand El-Beltagy, Samhaa R.\",\neditor=\"Gelbukh, Alexander\",\ntitle=\"Building Large Arabic Multi-domain Resources for Sentiment Analysis\",\nbooktitle=\"Computational Linguistics and Intelligent Text Processing\",\nyear=\"2015\",\npublisher=\"Springer International Publishing\",\naddress=\"Cham\",\npages=\"23--34\",\nisbn=\"978-3-319-18117-2\"\n}\n", "homepage": "https://github.com/hadyelsahar/large-arabic-sentiment-analysis-resouces", "license": "", "features": {"polarity": {"num_classes": 2, "names": ["negative", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "restaurant_id": {"dtype": "string", "id": null, "_type": "Value"}, "user_id": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ar_res_reviews", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3617097, "num_examples": 8364, "dataset_name": "ar_res_reviews"}}, "download_checksums": {"https://raw.githubusercontent.com/hadyelsahar/large-arabic-sentiment-analysis-resouces/master/datasets/RES1.csv": {"num_bytes": 3503230, "checksum": "afdb587d41310302372ed154a91a7231f566c137cadeea9df166e7326c2c4b19"}}, "download_size": 3503230, "post_processing_size": null, "dataset_size": 3617097, "size_in_bytes": 7120327}}
|
|
|
|
default/ar_res_reviews-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:88b6599cef22909e4abd38e79e5337bfc51a3672b8f133e6b078033546202f14
|
3 |
+
size 1887028
|