Datasets:

Modalities:
Text
ArXiv:
Libraries:
Datasets
License:
afaji commited on
Commit
e06fd67
1 Parent(s): b18e3ae

add README

Browse files
Files changed (2) hide show
  1. NusaX-senti.py +2 -4
  2. README.md +181 -0
NusaX-senti.py CHANGED
@@ -66,15 +66,13 @@ class NusaXSenti(datasets.GeneratorBasedBuilder):
66
  description = f"NusaX-Senti: Sentiment analysis dataset for {lang}")
67
  for lang in LANGUAGES_MAP]
68
 
69
- DEFAULT_CONFIG_NAME = "ind"
70
-
71
  def _info(self) -> datasets.DatasetInfo:
72
  features = datasets.Features(
73
  {
74
  "id": datasets.Value("string"),
75
  "text": datasets.Value("string"),
76
  "lang": datasets.Value("string"),
77
- "label": datasets.Value("string"),
78
  }
79
  )
80
 
@@ -113,4 +111,4 @@ class NusaXSenti(datasets.GeneratorBasedBuilder):
113
 
114
  for row in df.itertuples():
115
  ex = {"id": str(row.id), "text": row.text, "label": row.label, "lang": self.config.name}
116
- yield row.id, ex
 
66
  description = f"NusaX-Senti: Sentiment analysis dataset for {lang}")
67
  for lang in LANGUAGES_MAP]
68
 
 
 
69
  def _info(self) -> datasets.DatasetInfo:
70
  features = datasets.Features(
71
  {
72
  "id": datasets.Value("string"),
73
  "text": datasets.Value("string"),
74
  "lang": datasets.Value("string"),
75
+ "label": datasets.ClassLabel(names=["negative", "neutral", "positive"]),
76
  }
77
  )
78
 
 
111
 
112
  for row in df.itertuples():
113
  ex = {"id": str(row.id), "text": row.text, "label": row.label, "lang": self.config.name}
114
+ yield row.id, ex
README.md ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: NusaX-senti
3
+ annotations_creators:
4
+ - expert-generated
5
+ language_creators:
6
+ - expert-generated
7
+ language:
8
+ - id
9
+ license:
10
+ - cc-by-sa-4.0
11
+ multilinguality:
12
+ - multilingual
13
+ language:
14
+ - ace
15
+ - ban
16
+ - bjn
17
+ - bug
18
+ - en
19
+ - id
20
+ - jv
21
+ - mad
22
+ - min
23
+ - nij
24
+ - su
25
+ - bbc
26
+ size_categories:
27
+ - 10K<n<100K
28
+ source_datasets:
29
+ - original
30
+ task_categories:
31
+ - text-classification
32
+ task_ids:
33
+ - sentiment-classification
34
+ dataset_info:
35
+ features:
36
+ - name: id
37
+ dtype: string
38
+ - name: text
39
+ dtype: string
40
+ - name: lang
41
+ dtype: string
42
+ - name: label
43
+ dtype:
44
+ class_label:
45
+ names:
46
+ 0: negative
47
+ 1: neutral
48
+ 2: positive
49
+ ---
50
+
51
+ # Dataset Card for NusaX-Senti
52
+
53
+ ## Table of Contents
54
+ - [Dataset Description](#dataset-description)
55
+ - [Dataset Summary](#dataset-summary)
56
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
57
+ - [Languages](#languages)
58
+ - [Dataset Creation](#dataset-creation)
59
+ - [Curation Rationale](#curation-rationale)
60
+ - [Source Data](#source-data)
61
+ - [Annotations](#annotations)
62
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
63
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
64
+ - [Social Impact of Dataset](#social-impact-of-dataset)
65
+ - [Discussion of Biases](#discussion-of-biases)
66
+ - [Other Known Limitations](#other-known-limitations)
67
+ - [Additional Information](#additional-information)
68
+ - [Licensing Information](#licensing-information)
69
+ - [Citation Information](#citation-information)
70
+ - [Contributions](#contributions)
71
+
72
+ ## Dataset Description
73
+
74
+ - **Repository:** [GitHub](https://github.com/IndoNLP/nusax/tree/main/datasets/sentiment)
75
+ - **Paper:** [EACL 2022](https://arxiv.org/abs/2205.15960)
76
+ - **Point of Contact:** [GitHub](https://github.com/IndoNLP/nusax/tree/main/datasets/sentiment)
77
+
78
+ ### Dataset Summary
79
+
80
+ NusaX is a high-quality multilingual parallel corpus that covers 12 languages, Indonesian, English, and 10 Indonesian local languages, namely Acehnese, Balinese, Banjarese, Buginese, Madurese, Minangkabau, Javanese, Ngaju, Sundanese, and Toba Batak.
81
+ NusaX-Senti is a 3-labels (positive, neutral, negative) sentiment analysis dataset for 10 Indonesian local languages + Indonesian and English.
82
+
83
+
84
+ ### Supported Tasks and Leaderboards
85
+
86
+ - Sentiment analysis for Indonesian languages
87
+
88
+ ### Languages
89
+
90
+ - ace: acehnese,
91
+ - ban: balinese,
92
+ - bjn: banjarese,
93
+ - bug: buginese,
94
+ - eng: english,
95
+ - ind: indonesian,
96
+ - jav: javanese,
97
+ - mad: madurese,
98
+ - min: minangkabau,
99
+ - nij: ngaju,
100
+ - sun: sundanese,
101
+ - bbc: toba_batak,
102
+
103
+ ## Dataset Creation
104
+
105
+ ### Curation Rationale
106
+
107
+ There is a shortage of NLP research and resources for the Indonesian languages, despite the country having over 700 languages. With this in mind, we have created this dataset to support future research for the underrepresented languages in Indonesia.
108
+
109
+ ### Source Data
110
+
111
+ #### Initial Data Collection and Normalization
112
+
113
+ NusaX-senti is a dataset for sentiment analysis in Indonesian that has been expertly translated by native speakers.
114
+
115
+ #### Who are the source language producers?
116
+
117
+ The data was produced by humans (native speakers).
118
+
119
+ ### Annotations
120
+
121
+ #### Annotation process
122
+
123
+ NusaX-senti is derived from SmSA, which is the biggest publicly available dataset for Indonesian sentiment analysis. It comprises of comments and reviews from multiple online platforms. To ensure the quality of our dataset, we have filtered it by removing any abusive language and personally identifying information by manually reviewing all sentences. To ensure balance in the label distribution, we randomly picked 1,000 samples through stratified sampling and then translated them to the corresponding languages.
124
+
125
+ #### Who are the annotators?
126
+
127
+ Native speakers of both Indonesian and the corresponding languages.
128
+ Annotators were compensated based on the number of translated samples.
129
+
130
+ ### Personal and Sensitive Information
131
+
132
+ Personal information is removed.
133
+
134
+ ## Considerations for Using the Data
135
+
136
+ ### Social Impact of Dataset
137
+
138
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
139
+
140
+ ### Discussion of Biases
141
+
142
+ INDONLI is created using review text. These data sources may contain some bias.
143
+
144
+ ### Other Known Limitations
145
+
146
+ No other known limitations
147
+
148
+ ## Additional Information
149
+
150
+ ### Licensing Information
151
+
152
+ CC-BY-SA 4.0.
153
+
154
+ Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
155
+
156
+ ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
157
+
158
+ No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
159
+
160
+ Please contact authors for any information on the dataset.
161
+
162
+ ### Citation Information
163
+
164
+ ```
165
+ @misc{winata2022nusax,
166
+ title={NusaX: Multilingual Parallel Sentiment Dataset for 10 Indonesian Local Languages},
167
+ author={Winata, Genta Indra and Aji, Alham Fikri and Cahyawijaya,
168
+ Samuel and Mahendra, Rahmad and Koto, Fajri and Romadhony,
169
+ Ade and Kurniawan, Kemal and Moeljadi, David and Prasojo,
170
+ Radityo Eko and Fung, Pascale and Baldwin, Timothy and Lau,
171
+ Jey Han and Sennrich, Rico and Ruder, Sebastian},
172
+ year={2022},
173
+ eprint={2205.15960},
174
+ archivePrefix={arXiv},
175
+ primaryClass={cs.CL}
176
+ }
177
+ ```
178
+
179
+ ### Contributions
180
+
181
+ Thanks to [@afaji](https://github.com/afaji) for adding this dataset.