Datasets:
parquet-converter
commited on
Commit
•
e977cd3
1
Parent(s):
14b13ed
Update parquet files
Browse files- .gitattributes +0 -78
- README.md +0 -196
- data/arabic/validation.jsonl → all/tweet_sentiment_multilingual-test.parquet +2 -2
- all/tweet_sentiment_multilingual-train.parquet +3 -0
- data/english/test.jsonl → all/tweet_sentiment_multilingual-validation.parquet +2 -2
- data/english/validation.jsonl → arabic/tweet_sentiment_multilingual-test.parquet +2 -2
- data/arabic/test.jsonl → arabic/tweet_sentiment_multilingual-train.parquet +2 -2
- data/french/validation.jsonl → arabic/tweet_sentiment_multilingual-validation.parquet +2 -2
- data/english/train.jsonl +0 -3
- data/french/test.jsonl +0 -3
- data/french/train.jsonl +0 -3
- data/german/train.jsonl +0 -3
- data/hindi/test.jsonl +0 -3
- data/hindi/train.jsonl +0 -3
- data/hindi/validation.jsonl +0 -3
- data/italian/test.jsonl +0 -3
- data/italian/train.jsonl +0 -3
- data/italian/validation.jsonl +0 -3
- data/portuguese/test.jsonl +0 -3
- data/portuguese/train.jsonl +0 -3
- data/portuguese/validation.jsonl +0 -3
- data/spanish/test.jsonl +0 -3
- data/spanish/train.jsonl +0 -3
- data/spanish/validation.jsonl +0 -3
- data/german/test.jsonl → english/tweet_sentiment_multilingual-test.parquet +2 -2
- data/arabic/train.jsonl → english/tweet_sentiment_multilingual-train.parquet +2 -2
- data/german/validation.jsonl → english/tweet_sentiment_multilingual-validation.parquet +2 -2
- french/tweet_sentiment_multilingual-test.parquet +3 -0
- french/tweet_sentiment_multilingual-train.parquet +3 -0
- french/tweet_sentiment_multilingual-validation.parquet +3 -0
- german/tweet_sentiment_multilingual-test.parquet +3 -0
- german/tweet_sentiment_multilingual-train.parquet +3 -0
- german/tweet_sentiment_multilingual-validation.parquet +3 -0
- hindi/tweet_sentiment_multilingual-test.parquet +3 -0
- hindi/tweet_sentiment_multilingual-train.parquet +3 -0
- hindi/tweet_sentiment_multilingual-validation.parquet +3 -0
- italian/tweet_sentiment_multilingual-test.parquet +3 -0
- italian/tweet_sentiment_multilingual-train.parquet +3 -0
- italian/tweet_sentiment_multilingual-validation.parquet +3 -0
- portuguese/tweet_sentiment_multilingual-test.parquet +3 -0
- portuguese/tweet_sentiment_multilingual-train.parquet +3 -0
- portuguese/tweet_sentiment_multilingual-validation.parquet +3 -0
- spanish/tweet_sentiment_multilingual-test.parquet +3 -0
- spanish/tweet_sentiment_multilingual-train.parquet +3 -0
- spanish/tweet_sentiment_multilingual-validation.parquet +3 -0
- tweet_sentiment_multilingual.py +0 -81
.gitattributes
DELETED
@@ -1,78 +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 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ckpt 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 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
27 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
-
# Audio files - uncompressed
|
37 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
38 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
39 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
40 |
-
# Audio files - compressed
|
41 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
42 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
43 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
44 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
45 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
46 |
-
# Image files - uncompressed
|
47 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
48 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
49 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
50 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
51 |
-
# Image files - compressed
|
52 |
-
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
-
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
-
*.webp filter=lfs diff=lfs merge=lfs -text
|
55 |
-
data/arabic/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
56 |
-
data/french/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
57 |
-
data/hindi/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
58 |
-
data/italian/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
59 |
-
data/portuguese/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
60 |
-
data/portuguese/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
61 |
-
data/spanish/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
62 |
-
data/spanish/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
63 |
-
data/english/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
64 |
-
data/english/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
65 |
-
data/french/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
66 |
-
data/german/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
67 |
-
data/italian/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
68 |
-
data/portuguese/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
69 |
-
data/arabic/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
70 |
-
data/english/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
71 |
-
data/german/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
72 |
-
data/german/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
73 |
-
data/hindi/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
74 |
-
data/italian/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
75 |
-
data/arabic/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
76 |
-
data/french/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
77 |
-
data/hindi/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
78 |
-
data/spanish/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,196 +0,0 @@
|
|
1 |
-
---
|
2 |
-
language:
|
3 |
-
- en
|
4 |
-
- ar
|
5 |
-
- fr
|
6 |
-
- de
|
7 |
-
- hi
|
8 |
-
- it
|
9 |
-
- pt
|
10 |
-
- es
|
11 |
-
multilinguality:
|
12 |
-
- multilingual
|
13 |
-
size_categories:
|
14 |
-
- 10K<n<100K
|
15 |
-
source_datasets:
|
16 |
-
- extended|other-tweet-datasets
|
17 |
-
task_categories:
|
18 |
-
- text-classification
|
19 |
-
task_ids:
|
20 |
-
- sentiment-classification
|
21 |
-
paperswithcode_id: tweet_sentiment_multilingual
|
22 |
-
pretty_name: Tweet Sentiment Multilingual
|
23 |
-
train-eval-index:
|
24 |
-
- config: sentiment
|
25 |
-
task: text-classification
|
26 |
-
task_id: multi_class_classification
|
27 |
-
splits:
|
28 |
-
train_split: train
|
29 |
-
eval_split: test
|
30 |
-
col_mapping:
|
31 |
-
text: text
|
32 |
-
label: target
|
33 |
-
metrics:
|
34 |
-
- type: accuracy
|
35 |
-
name: Accuracy
|
36 |
-
- type: f1
|
37 |
-
name: F1 macro
|
38 |
-
args:
|
39 |
-
average: macro
|
40 |
-
- type: f1
|
41 |
-
name: F1 micro
|
42 |
-
args:
|
43 |
-
average: micro
|
44 |
-
- type: f1
|
45 |
-
name: F1 weighted
|
46 |
-
args:
|
47 |
-
average: weighted
|
48 |
-
- type: precision
|
49 |
-
name: Precision macro
|
50 |
-
args:
|
51 |
-
average: macro
|
52 |
-
- type: precision
|
53 |
-
name: Precision micro
|
54 |
-
args:
|
55 |
-
average: micro
|
56 |
-
- type: precision
|
57 |
-
name: Precision weighted
|
58 |
-
args:
|
59 |
-
average: weighted
|
60 |
-
- type: recall
|
61 |
-
name: Recall macro
|
62 |
-
args:
|
63 |
-
average: macro
|
64 |
-
- type: recall
|
65 |
-
name: Recall micro
|
66 |
-
args:
|
67 |
-
average: micro
|
68 |
-
- type: recall
|
69 |
-
name: Recall weighted
|
70 |
-
args:
|
71 |
-
average: weighted
|
72 |
-
configs:
|
73 |
-
- arabic
|
74 |
-
- english
|
75 |
-
- french
|
76 |
-
- german
|
77 |
-
- hindi
|
78 |
-
- italian
|
79 |
-
- portuguese
|
80 |
-
- spanish
|
81 |
-
dataset_info:
|
82 |
-
- config_name: sentiment
|
83 |
-
features:
|
84 |
-
- name: text
|
85 |
-
dtype: string
|
86 |
-
- name: label
|
87 |
-
dtype:
|
88 |
-
class_label:
|
89 |
-
names:
|
90 |
-
0: negative
|
91 |
-
1: neutral
|
92 |
-
2: positive
|
93 |
-
---
|
94 |
-
|
95 |
-
# Dataset Card for cardiffnlp/tweet_sentiment_multilingual
|
96 |
-
|
97 |
-
## Dataset Description
|
98 |
-
|
99 |
-
- **Homepage:** [https://github.com/cardiffnlp/xlm-t](https://github.com/cardiffnlp/xlm-t)
|
100 |
-
- **Repository:** - **Homepage:** [https://github.com/cardiffnlp/xlm-t](https://github.com/cardiffnlp/xlm-t)
|
101 |
-
- **Paper:** [https://aclanthology.org/2022.lrec-1.27/](https://aclanthology.org/2022.lrec-1.27/)
|
102 |
-
- **Point of Contact:** [Asahi Ushio](https://asahiushio.com/)
|
103 |
-
|
104 |
-
### Dataset Summary
|
105 |
-
|
106 |
-
Tweet Sentiment Multilingual consists of sentiment analysis dataset on Twitter in 8 different lagnuages.
|
107 |
-
|
108 |
-
- arabic
|
109 |
-
- english
|
110 |
-
- french
|
111 |
-
- german
|
112 |
-
- hindi
|
113 |
-
- italian
|
114 |
-
- portuguese
|
115 |
-
- spanish
|
116 |
-
|
117 |
-
### Supported Tasks and Leaderboards
|
118 |
-
|
119 |
-
- `text_classification`: The dataset can be trained using a SentenceClassification model from HuggingFace transformers.
|
120 |
-
|
121 |
-
## Dataset Structure
|
122 |
-
|
123 |
-
### Data Instances
|
124 |
-
|
125 |
-
An instance from `sentiment` config:
|
126 |
-
|
127 |
-
```
|
128 |
-
{'label': 2, 'text': '"QT @user In the original draft of the 7th book, Remus Lupin survived the Battle of Hogwarts. #HappyBirthdayRemusLupin"'}
|
129 |
-
```
|
130 |
-
|
131 |
-
### Data Fields
|
132 |
-
|
133 |
-
For `sentiment` config:
|
134 |
-
|
135 |
-
- `text`: a `string` feature containing the tweet.
|
136 |
-
|
137 |
-
- `label`: an `int` classification label with the following mapping:
|
138 |
-
|
139 |
-
`0`: negative
|
140 |
-
|
141 |
-
`1`: neutral
|
142 |
-
|
143 |
-
`2`: positive
|
144 |
-
|
145 |
-
|
146 |
-
### Data Splits
|
147 |
-
|
148 |
-
|
149 |
-
- arabic
|
150 |
-
- english
|
151 |
-
- french
|
152 |
-
- german
|
153 |
-
- hindi
|
154 |
-
- italian
|
155 |
-
- portuguese
|
156 |
-
- spanish
|
157 |
-
|
158 |
-
| name | train | validation | test |
|
159 |
-
| --------------- | ----- | ---------- | ----- |
|
160 |
-
| arabic | 1838 | 323 | 869 |
|
161 |
-
| english | 1838 | 323 | 869 |
|
162 |
-
| french | 1838 | 323 | 869 |
|
163 |
-
| german | 1838 | 323 | 869 |
|
164 |
-
| hindi | 1838 | 323 | 869 |
|
165 |
-
| italian | 1838 | 323 | 869 |
|
166 |
-
| portuguese | 1838 | 323 | 869 |
|
167 |
-
| spanish | 1838 | 323 | 869 |
|
168 |
-
|
169 |
-
### Dataset Curators
|
170 |
-
|
171 |
-
Francesco Barbieri, Jose Camacho-Collados, Luis Espiinosa-Anke and Leonardo Neves through Cardiff NLP.
|
172 |
-
|
173 |
-
### Licensing Information
|
174 |
-
|
175 |
-
[Creative Commons Attribution 3.0 Unported License](https://groups.google.com/g/semevaltweet/c/k5DDcvVb_Vo/m/zEOdECFyBQAJ), and all of the datasets require complying with Twitter [Terms Of Service](https://twitter.com/tos) and Twitter API [Terms Of Service](https://developer.twitter.com/en/developer-terms/agreement-and-policy)
|
176 |
-
|
177 |
-
|
178 |
-
### Citation Information
|
179 |
-
|
180 |
-
```
|
181 |
-
@inproceedings{barbieri-etal-2022-xlm,
|
182 |
-
title = "{XLM}-{T}: Multilingual Language Models in {T}witter for Sentiment Analysis and Beyond",
|
183 |
-
author = "Barbieri, Francesco and
|
184 |
-
Espinosa Anke, Luis and
|
185 |
-
Camacho-Collados, Jose",
|
186 |
-
booktitle = "Proceedings of the Thirteenth Language Resources and Evaluation Conference",
|
187 |
-
month = jun,
|
188 |
-
year = "2022",
|
189 |
-
address = "Marseille, France",
|
190 |
-
publisher = "European Language Resources Association",
|
191 |
-
url = "https://aclanthology.org/2022.lrec-1.27",
|
192 |
-
pages = "258--266",
|
193 |
-
abstract = "Language models are ubiquitous in current NLP, and their multilingual capacity has recently attracted considerable attention. However, current analyses have almost exclusively focused on (multilingual variants of) standard benchmarks, and have relied on clean pre-training and task-specific corpora as multilingual signals. In this paper, we introduce XLM-T, a model to train and evaluate multilingual language models in Twitter. In this paper we provide: (1) a new strong multilingual baseline consisting of an XLM-R (Conneau et al. 2020) model pre-trained on millions of tweets in over thirty languages, alongside starter code to subsequently fine-tune on a target task; and (2) a set of unified sentiment analysis Twitter datasets in eight different languages and a XLM-T model trained on this dataset.",
|
194 |
-
}
|
195 |
-
```
|
196 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/arabic/validation.jsonl → all/tweet_sentiment_multilingual-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7310481fc0b33b94b012b4bab506bf0993e1e27b58b521ac24b9c12f1a194d7a
|
3 |
+
size 464178
|
all/tweet_sentiment_multilingual-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ffdb81605e3e833fbac611b4c8b93b72d4b1be18f07dbee451751f2b23b228a
|
3 |
+
size 1029795
|
data/english/test.jsonl → all/tweet_sentiment_multilingual-validation.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:52a01e3e385b44e007ed6d33dd721ce419f8c8c055b1e92734d8170c1c8deed3
|
3 |
+
size 186769
|
data/english/validation.jsonl → arabic/tweet_sentiment_multilingual-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f7d509c351f00764f3a1a5392c1d10a4d55265fdfcb4b2a047de43b15d4bc88
|
3 |
+
size 74890
|
data/arabic/test.jsonl → arabic/tweet_sentiment_multilingual-train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64a4109622b066b5f5e1ad9b5f78268a1dad583bbff704e0ee77cfda8c873c01
|
3 |
+
size 172586
|
data/french/validation.jsonl → arabic/tweet_sentiment_multilingual-validation.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53591ed4db2852047a3777adc15d35a0edbe19cd52310af68901a27b550da42f
|
3 |
+
size 32424
|
data/english/train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:96596c722cb8074ca0c8df1243a248fe265c49c1aa50ba79c14b24dd23303111
|
3 |
-
size 252778
|
|
|
|
|
|
|
|
data/french/test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:f9a053c514b0599c567ceb84493b6f9387e9c65ac2870dd5e324c346d963a918
|
3 |
-
size 118171
|
|
|
|
|
|
|
|
data/french/train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:21282750ba58ccda3ff4c8c670879b585d97081375d2cee2fdfcce53ae608270
|
3 |
-
size 255265
|
|
|
|
|
|
|
|
data/german/train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:56e69e898569d42511acfa1f5016fb8007bc9ffb1fbfa87530f19ccaef079f31
|
3 |
-
size 196128
|
|
|
|
|
|
|
|
data/hindi/test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:af4cfc1078e4b5cda6880831f09aa1bfbf41785b2433a364a20a8bac0a6f4cc1
|
3 |
-
size 86209
|
|
|
|
|
|
|
|
data/hindi/train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:8f5e65240b92f2f5bab49c31d6f32c633bbce054f3db60082e704e8fe6b322d8
|
3 |
-
size 191961
|
|
|
|
|
|
|
|
data/hindi/validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:7bce67a7e593240086e82975c4fefe28cef8235260ab5fb98432b6b5b25dba9f
|
3 |
-
size 35196
|
|
|
|
|
|
|
|
data/italian/test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:a09cd1840ec79493a0b35db87770c89262e85a91c51501cb536dfa14d59af2cb
|
3 |
-
size 107833
|
|
|
|
|
|
|
|
data/italian/train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:87e780efdbbb3cea03a8fa18b4893d69238b5790c5b09e862ec8ecb5601c235b
|
3 |
-
size 221715
|
|
|
|
|
|
|
|
data/italian/validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:50a1f9990806fa157036376c29fe4a2fd3af046e24247774c00a5f350d0dad04
|
3 |
-
size 39529
|
|
|
|
|
|
|
|
data/portuguese/test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:274fa27f495b42485698b49775bfa07226dc6acc8795bc350ad367234905fee8
|
3 |
-
size 97981
|
|
|
|
|
|
|
|
data/portuguese/train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:95262fd2bf0e30657cf990ed9141aca8d9c0b0b18cdd35ef84b0488e2de9de09
|
3 |
-
size 207443
|
|
|
|
|
|
|
|
data/portuguese/validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:906d1bd07d39e7bed4d5d22697986652c8a1b778a9107f1e62a31f81d7ade9ac
|
3 |
-
size 35171
|
|
|
|
|
|
|
|
data/spanish/test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:6cd7b62449ee93aa27c4bc9c8c4bbede4a6ce59e371e1b8abe7792cb1c8f5293
|
3 |
-
size 103206
|
|
|
|
|
|
|
|
data/spanish/train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:46495c835f5ca2e23f58f602283d8bed0a380d1c247a5a033fe5b8647de82a27
|
3 |
-
size 215584
|
|
|
|
|
|
|
|
data/spanish/validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:4fdfe3a351205acd41f5ed227977ec55f84a175d1d508f29efa72cdb04660b52
|
3 |
-
size 38357
|
|
|
|
|
|
|
|
data/german/test.jsonl → english/tweet_sentiment_multilingual-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2e3a3412be08ec90031fe6b90fe28dcdc9b5a984c4dae3147626f408639a98ac
|
3 |
+
size 64769
|
data/arabic/train.jsonl → english/tweet_sentiment_multilingual-train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aa69da910e7ae37e70ffd6513e02e82729ff5eec617e326eeff90b9d9fdf7293
|
3 |
+
size 155187
|
data/german/validation.jsonl → english/tweet_sentiment_multilingual-validation.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e1a6c832484e8d08e94a5ad2a7026eaa89a8e1c657f56358ec2298508a950276
|
3 |
+
size 29131
|
french/tweet_sentiment_multilingual-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c6f51c650a9f79b4eacb05ff35f60e8af79f1288938276e097f87a37ee14a6ad
|
3 |
+
size 56910
|
french/tweet_sentiment_multilingual-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:deb0ef37e417cb0b2535ab23590a99119d11af3e23f9e858eb33d17e4687e9e6
|
3 |
+
size 125845
|
french/tweet_sentiment_multilingual-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc84c91a3a0288268fc0bab25a6ee32ebbd9b0b24805abcf572d71c365d3407c
|
3 |
+
size 24309
|
german/tweet_sentiment_multilingual-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2e6e0428b7a6e76d8eca21c8eee1551f3c14f4d3f4a036f69da9bed1b5bf427e
|
3 |
+
size 54060
|
german/tweet_sentiment_multilingual-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f3eaddfedc011d30bc4341b6cdc00f2623c2df979e6801742f9c74277523cb2
|
3 |
+
size 114219
|
german/tweet_sentiment_multilingual-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8d9aca7d145022aca081a27a80e62610226ab3f9d6273bef299b478d41fae9b
|
3 |
+
size 20678
|
hindi/tweet_sentiment_multilingual-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a057f9ec913e7f26795fd55bb314d5d62c75ce0e320bc5af86f0feaf9256a4f
|
3 |
+
size 51816
|
hindi/tweet_sentiment_multilingual-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e128e054716785fdaf051e10097faa6c6bde3b5bd0ad7af3dcc3eceeef590a01
|
3 |
+
size 116563
|
hindi/tweet_sentiment_multilingual-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b4ae2574ac3c917ee8d574da293e097bc339ad7173d2b5c22a67d20f57e5b4f1
|
3 |
+
size 22985
|
italian/tweet_sentiment_multilingual-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2886237881ec953cabacbd7652158793ae0793703266489d137d600df1e89f4e
|
3 |
+
size 57551
|
italian/tweet_sentiment_multilingual-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:91fc8af458b543168d9f8ea9982068f672b87b2906151796cd82d13da944b3fb
|
3 |
+
size 126025
|
italian/tweet_sentiment_multilingual-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ebc89d2c19d13c15701e6ba2a7ffe1ef87810a3e8a31e85e11d22b4f7262c5be
|
3 |
+
size 24628
|
portuguese/tweet_sentiment_multilingual-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3875e7ff6782d5cc3c79b59885aeab712f8df0124830de5420878f706e70635
|
3 |
+
size 47363
|
portuguese/tweet_sentiment_multilingual-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fc7b8a2dbac50aca3548112a75cff5e34e6a16211d35b904fcca440469e3b0b
|
3 |
+
size 101341
|
portuguese/tweet_sentiment_multilingual-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a159f96bbf26f3f1769536b3d28d9f2c076414e7e1d4c85cfa71e76211d72786
|
3 |
+
size 19033
|
spanish/tweet_sentiment_multilingual-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:141dff3f07742ef94e92c1147bc619e30d89ae45baaa062e4c7fc19d712c267d
|
3 |
+
size 58015
|
spanish/tweet_sentiment_multilingual-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f4022f00265960909ea0b2081f61c017150c773f4f156b54d0e63419c439dd9
|
3 |
+
size 119516
|
spanish/tweet_sentiment_multilingual-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27b6278d1652b75b0d4acd3a24a3ec3c753092feb6277c46e5f27f981cffc06f
|
3 |
+
size 23578
|
tweet_sentiment_multilingual.py
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
import json
|
2 |
-
import datasets
|
3 |
-
|
4 |
-
|
5 |
-
logger = datasets.logging.get_logger(__name__)
|
6 |
-
_VERSION = "0.1.0"
|
7 |
-
_NAME = "tweet_sentiment_multilingual"
|
8 |
-
_DESCRIPTION = "Multilingual sentiment analysis dataset on Twitter."
|
9 |
-
_CITATION = """
|
10 |
-
@inproceedings{barbieri-etal-2022-xlm,
|
11 |
-
title = "{XLM}-{T}: Multilingual Language Models in {T}witter for Sentiment Analysis and Beyond",
|
12 |
-
author = "Barbieri, Francesco and
|
13 |
-
Espinosa Anke, Luis and
|
14 |
-
Camacho-Collados, Jose",
|
15 |
-
booktitle = "Proceedings of the Thirteenth Language Resources and Evaluation Conference",
|
16 |
-
month = jun,
|
17 |
-
year = "2022",
|
18 |
-
address = "Marseille, France",
|
19 |
-
publisher = "European Language Resources Association",
|
20 |
-
url = "https://aclanthology.org/2022.lrec-1.27",
|
21 |
-
pages = "258--266",
|
22 |
-
abstract = "Language models are ubiquitous in current NLP, and their multilingual capacity has recently attracted considerable attention. However, current analyses have almost exclusively focused on (multilingual variants of) standard benchmarks, and have relied on clean pre-training and task-specific corpora as multilingual signals. In this paper, we introduce XLM-T, a model to train and evaluate multilingual language models in Twitter. In this paper we provide: (1) a new strong multilingual baseline consisting of an XLM-R (Conneau et al. 2020) model pre-trained on millions of tweets in over thirty languages, alongside starter code to subsequently fine-tune on a target task; and (2) a set of unified sentiment analysis Twitter datasets in eight different languages and a XLM-T model trained on this dataset.",
|
23 |
-
}
|
24 |
-
"""
|
25 |
-
_HOMEPAGE = "https://github.com/cardiffnlp/xlm-t"
|
26 |
-
_BASE_URL = "https://huggingface.co/datasets/cardiffnlp/tweet_sentiment_multilingual/resolve/main/data"
|
27 |
-
_LANGUAGE = ["arabic", "english", "french", "german", "hindi", "italian", "portuguese", "spanish"]
|
28 |
-
_URLS = {l: {
|
29 |
-
k: [f'{_BASE_URL}/{l}/{k}.jsonl'] for k in [str(datasets.Split.TEST), str(datasets.Split.TRAIN), str(datasets.Split.VALIDATION)]
|
30 |
-
} for l in _LANGUAGE}
|
31 |
-
_URLS['all'] = {k: [f'{_BASE_URL}/{l}/{k}.jsonl' for l in _LANGUAGE] for k in [str(datasets.Split.TEST), str(datasets.Split.TRAIN), str(datasets.Split.VALIDATION)]}
|
32 |
-
|
33 |
-
|
34 |
-
class TweetSentimentMultilingualConfig(datasets.BuilderConfig):
|
35 |
-
"""BuilderConfig"""
|
36 |
-
|
37 |
-
def __init__(self, **kwargs):
|
38 |
-
"""BuilderConfig
|
39 |
-
Args:
|
40 |
-
**kwargs: keyword arguments forwarded to super.
|
41 |
-
"""
|
42 |
-
super(TweetSentimentMultilingualConfig, self).__init__(**kwargs)
|
43 |
-
|
44 |
-
|
45 |
-
class TweetSentimentMultilingual(datasets.GeneratorBasedBuilder):
|
46 |
-
|
47 |
-
BUILDER_CONFIGS = [
|
48 |
-
TweetSentimentMultilingualConfig(name=l, version=datasets.Version(_VERSION), description=_DESCRIPTION) for l in _LANGUAGE
|
49 |
-
]
|
50 |
-
BUILDER_CONFIGS += [TweetSentimentMultilingualConfig(name='all', version=datasets.Version(_VERSION), description=_DESCRIPTION)]
|
51 |
-
|
52 |
-
def _info(self):
|
53 |
-
names = ["negative", "neutral", "positive"]
|
54 |
-
return datasets.DatasetInfo(
|
55 |
-
description=_DESCRIPTION,
|
56 |
-
features=datasets.Features(
|
57 |
-
{"text": datasets.Value("string"), "label": datasets.features.ClassLabel(names=names)}
|
58 |
-
),
|
59 |
-
supervised_keys=None,
|
60 |
-
homepage=_HOMEPAGE,
|
61 |
-
citation=_CITATION
|
62 |
-
)
|
63 |
-
|
64 |
-
def _split_generators(self, dl_manager):
|
65 |
-
downloaded_file = dl_manager.download_and_extract(_URLS[self.config.name])
|
66 |
-
return [datasets.SplitGenerator(name=i, gen_kwargs={"filepaths": downloaded_file[str(i)]})
|
67 |
-
for i in [datasets.Split.TRAIN, datasets.Split.VALIDATION, datasets.Split.TEST]]
|
68 |
-
|
69 |
-
def _generate_examples(self, filepaths):
|
70 |
-
"""This function returns the examples in the raw (text) form."""
|
71 |
-
_key = 0
|
72 |
-
for filepath in filepaths:
|
73 |
-
logger.info("generating examples from = %s", filepath)
|
74 |
-
with open(filepath, encoding="utf-8") as f:
|
75 |
-
_list = f.read().split('\n')
|
76 |
-
if _list[-1] == '':
|
77 |
-
_list = _list[:-1]
|
78 |
-
for i in _list:
|
79 |
-
data = json.loads(i)
|
80 |
-
yield _key, data
|
81 |
-
_key += 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|