Datasets:
Added Data
Browse files- .gitattributes +1 -0
- README.md +101 -0
- data/test.csv +3 -0
- data/train.csv +3 -0
- data/validation.csv +3 -0
- raw_data/khotijah.csv +3 -0
- raw_data/khotijah_cleaned.csv +3 -0
.gitattributes
CHANGED
@@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
56 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,3 +1,104 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- ind
|
5 |
+
pretty_name: "Twitter Indonesia Sarcastic"
|
6 |
---
|
7 |
+
|
8 |
+
# Twitter Indonesia Sarcastic
|
9 |
+
|
10 |
+
Twitter Indonesia Sarcastic is a dataset intended for sarcasm detection in the Indonesian language. This dataset is introduced in [Khotijah et al. (2020)](https://dl.acm.org/doi/10.1145/3406601.3406624), whereby Indonesian tweets are collected and labeled as either sarcastic or non-sarcastic. We took the [raw data](https://github.com/skhotijah/using-lstm-for-context-based-approach-of-sarcasm-detection-in-twitter/blob/main/dataset/Indonesia/imbalanced.csv), and performed several cleaning procedures such as: sentence order re-reversal, deduplication with minHash LSH, PII masking to remove usernames, hashtags, emails, URLs, and finally a random sampling to limit the non-sarcastic comments. Following [SemEval-2022 Task 6: iSarcasmEval](https://aclanthology.org/2022.semeval-1.111/), we used a 1:3 ratio to balance sarcastic with non-sarcastic comments.
|
11 |
+
|
12 |
+
## Dataset Structure
|
13 |
+
|
14 |
+
### Data Instances
|
15 |
+
|
16 |
+
```py
|
17 |
+
{
|
18 |
+
'tweet': 'Terima kasih bapak <username> telah mengendalikan banjir dengan baik sehingga Jakarta saat ini tidak ada lagi yang tidak banjir.. Semua sudah merata.. ?????? <hashtag>',
|
19 |
+
'label': 1
|
20 |
+
}
|
21 |
+
```
|
22 |
+
|
23 |
+
### Data Fields
|
24 |
+
|
25 |
+
- `tweet`: PII-masked Twitter tweet content.
|
26 |
+
- `label`: `0` for non-sarcastic, `1` for sarcastic.
|
27 |
+
|
28 |
+
### Data Splits
|
29 |
+
|
30 |
+
| Split | #sarcastic | #non sarcastic | #total |
|
31 |
+
| --------------------------- | :--------: | :------------: | :----: |
|
32 |
+
| `train` | 470 | 1408 | 1878 |
|
33 |
+
| `test` | 134 | 404 | 538 |
|
34 |
+
| `validation` | 67 | 201 | 268 |
|
35 |
+
| Total (cleaned; balanced) | 671 | 2013 | 2684 |
|
36 |
+
| Total (cleaned; unbalanced) | 671 | 12190 | 12861 |
|
37 |
+
| Total (raw) | 4350 | 13368 | 17718 |
|
38 |
+
|
39 |
+
### Dataset Directory
|
40 |
+
|
41 |
+
```sh
|
42 |
+
twitter_indonesia_sarcastic
|
43 |
+
βββ README.md
|
44 |
+
βββ data # re-balanced dataset
|
45 |
+
βΒ Β βββ test.csv
|
46 |
+
βΒ Β βββ train.csv
|
47 |
+
βΒ Β βββ validation.csv
|
48 |
+
βββ raw_data
|
49 |
+
βββ khotijah.csv # raw dataset
|
50 |
+
βββ khotijah_cleaned.csv # cleaned dataset
|
51 |
+
```
|
52 |
+
|
53 |
+
## Authors
|
54 |
+
|
55 |
+
Twitter Indonesia Sarcastic is prepared by:
|
56 |
+
|
57 |
+
<a href="https://github.com/w11wo">
|
58 |
+
<img src="https://github.com/w11wo.png" alt="GitHub Profile" style="border-radius: 50%;width: 64px;border: solid 1px #fff;margin:0 4px;">
|
59 |
+
</a>
|
60 |
+
|
61 |
+
## References
|
62 |
+
|
63 |
+
```bibtex
|
64 |
+
@inproceedings{10.1145/3406601.3406624,
|
65 |
+
author = {Khotijah, Siti and Tirtawangsa, Jimmy and Suryani, Arie A.},
|
66 |
+
title = {Using LSTM for Context Based Approach of Sarcasm Detection in Twitter},
|
67 |
+
year = {2020},
|
68 |
+
isbn = {9781450377591},
|
69 |
+
publisher = {Association for Computing Machinery},
|
70 |
+
address = {New York, NY, USA},
|
71 |
+
url = {https://doi.org/10.1145/3406601.3406624},
|
72 |
+
doi = {10.1145/3406601.3406624},
|
73 |
+
booktitle = {Proceedings of the 11th International Conference on Advances in Information Technology},
|
74 |
+
articleno = {19},
|
75 |
+
numpages = {7},
|
76 |
+
keywords = {context, Sarcasm detection, paragraph2vec, lstm, deep learning},
|
77 |
+
location = {, Bangkok, Thailand, },
|
78 |
+
series = {IAIT '20}
|
79 |
+
}
|
80 |
+
|
81 |
+
@inproceedings{abu-farha-etal-2022-semeval,
|
82 |
+
title = "{S}em{E}val-2022 Task 6: i{S}arcasm{E}val, Intended Sarcasm Detection in {E}nglish and {A}rabic",
|
83 |
+
author = "Abu Farha, Ibrahim and
|
84 |
+
Oprea, Silviu Vlad and
|
85 |
+
Wilson, Steven and
|
86 |
+
Magdy, Walid",
|
87 |
+
editor = "Emerson, Guy and
|
88 |
+
Schluter, Natalie and
|
89 |
+
Stanovsky, Gabriel and
|
90 |
+
Kumar, Ritesh and
|
91 |
+
Palmer, Alexis and
|
92 |
+
Schneider, Nathan and
|
93 |
+
Singh, Siddharth and
|
94 |
+
Ratan, Shyam",
|
95 |
+
booktitle = "Proceedings of the 16th International Workshop on Semantic Evaluation (SemEval-2022)",
|
96 |
+
month = jul,
|
97 |
+
year = "2022",
|
98 |
+
address = "Seattle, United States",
|
99 |
+
publisher = "Association for Computational Linguistics",
|
100 |
+
url = "https://aclanthology.org/2022.semeval-1.111",
|
101 |
+
doi = "10.18653/v1/2022.semeval-1.111",
|
102 |
+
pages = "802--814",
|
103 |
+
}
|
104 |
+
```
|
data/test.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a00665a48f759041cafc95f374ff76af00be5f0bb878e8cd5bc1bd9aa193911
|
3 |
+
size 61502
|
data/train.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:601fb58df4317f0286c8ce23c70370edf00f33d1873c7a098d896b0135742037
|
3 |
+
size 225784
|
data/validation.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3638cb4f9b3ee3533f0c3eb76a598e26040951eedd327c0ebed4cf1d2a86117
|
3 |
+
size 32643
|
raw_data/khotijah.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:36010f9746924b73533fe1dde7f145267b6500f98c6df0c7b1746152ce4daf16
|
3 |
+
size 2397431
|
raw_data/khotijah_cleaned.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4bb108b6ff1c30f1b1181c2f98532f8c083839e0b8fba8f9192ddca991e90e13
|
3 |
+
size 1517283
|