ichangg parquet-converter commited on
Commit
6277dc8
·
0 Parent(s):

Duplicate from indonlp/indonlu

Browse files

Co-authored-by: Parquet-converter (BOT) <parquet-converter@users.noreply.huggingface.co>

Files changed (4) hide show
  1. .gitattributes +27 -0
  2. README.md +1041 -0
  3. dataset_infos.json +1 -0
  4. indonlu.py +639 -0
.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,1041 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - expert-generated
6
+ language:
7
+ - id
8
+ license:
9
+ - mit
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 10K<n<100K
14
+ - 1K<n<10K
15
+ - n<1K
16
+ source_datasets:
17
+ - original
18
+ task_categories:
19
+ - question-answering
20
+ - text-classification
21
+ - token-classification
22
+ task_ids:
23
+ - closed-domain-qa
24
+ - multi-class-classification
25
+ - named-entity-recognition
26
+ - part-of-speech
27
+ - semantic-similarity-classification
28
+ - sentiment-classification
29
+ paperswithcode_id: indonlu-benchmark
30
+ pretty_name: IndoNLU
31
+ configs:
32
+ - bapos
33
+ - casa
34
+ - emot
35
+ - facqa
36
+ - hoasa
37
+ - keps
38
+ - nergrit
39
+ - nerp
40
+ - posp
41
+ - smsa
42
+ - terma
43
+ - wrete
44
+ tags:
45
+ - keyphrase-extraction
46
+ - span-extraction
47
+ - aspect-based-sentiment-analysis
48
+ dataset_info:
49
+ - config_name: emot
50
+ features:
51
+ - name: tweet
52
+ dtype: string
53
+ - name: label
54
+ dtype:
55
+ class_label:
56
+ names:
57
+ 0: sadness
58
+ 1: anger
59
+ 2: love
60
+ 3: fear
61
+ 4: happy
62
+ splits:
63
+ - name: train
64
+ num_bytes: 686418
65
+ num_examples: 3521
66
+ - name: validation
67
+ num_bytes: 84082
68
+ num_examples: 440
69
+ - name: test
70
+ num_bytes: 84856
71
+ num_examples: 440
72
+ download_size: 840917
73
+ dataset_size: 855356
74
+ - config_name: smsa
75
+ features:
76
+ - name: text
77
+ dtype: string
78
+ - name: label
79
+ dtype:
80
+ class_label:
81
+ names:
82
+ 0: positive
83
+ 1: neutral
84
+ 2: negative
85
+ splits:
86
+ - name: train
87
+ num_bytes: 2209874
88
+ num_examples: 11000
89
+ - name: validation
90
+ num_bytes: 249629
91
+ num_examples: 1260
92
+ - name: test
93
+ num_bytes: 77041
94
+ num_examples: 500
95
+ download_size: 2509229
96
+ dataset_size: 2536544
97
+ - config_name: casa
98
+ features:
99
+ - name: sentence
100
+ dtype: string
101
+ - name: fuel
102
+ dtype:
103
+ class_label:
104
+ names:
105
+ 0: negative
106
+ 1: neutral
107
+ 2: positive
108
+ - name: machine
109
+ dtype:
110
+ class_label:
111
+ names:
112
+ 0: negative
113
+ 1: neutral
114
+ 2: positive
115
+ - name: others
116
+ dtype:
117
+ class_label:
118
+ names:
119
+ 0: negative
120
+ 1: neutral
121
+ 2: positive
122
+ - name: part
123
+ dtype:
124
+ class_label:
125
+ names:
126
+ 0: negative
127
+ 1: neutral
128
+ 2: positive
129
+ - name: price
130
+ dtype:
131
+ class_label:
132
+ names:
133
+ 0: negative
134
+ 1: neutral
135
+ 2: positive
136
+ - name: service
137
+ dtype:
138
+ class_label:
139
+ names:
140
+ 0: negative
141
+ 1: neutral
142
+ 2: positive
143
+ splits:
144
+ - name: train
145
+ num_bytes: 110415
146
+ num_examples: 810
147
+ - name: validation
148
+ num_bytes: 11993
149
+ num_examples: 90
150
+ - name: test
151
+ num_bytes: 23553
152
+ num_examples: 180
153
+ download_size: 144903
154
+ dataset_size: 145961
155
+ - config_name: hoasa
156
+ features:
157
+ - name: sentence
158
+ dtype: string
159
+ - name: ac
160
+ dtype:
161
+ class_label:
162
+ names:
163
+ 0: neg
164
+ 1: neut
165
+ 2: pos
166
+ 3: neg_pos
167
+ - name: air_panas
168
+ dtype:
169
+ class_label:
170
+ names:
171
+ 0: neg
172
+ 1: neut
173
+ 2: pos
174
+ 3: neg_pos
175
+ - name: bau
176
+ dtype:
177
+ class_label:
178
+ names:
179
+ 0: neg
180
+ 1: neut
181
+ 2: pos
182
+ 3: neg_pos
183
+ - name: general
184
+ dtype:
185
+ class_label:
186
+ names:
187
+ 0: neg
188
+ 1: neut
189
+ 2: pos
190
+ 3: neg_pos
191
+ - name: kebersihan
192
+ dtype:
193
+ class_label:
194
+ names:
195
+ 0: neg
196
+ 1: neut
197
+ 2: pos
198
+ 3: neg_pos
199
+ - name: linen
200
+ dtype:
201
+ class_label:
202
+ names:
203
+ 0: neg
204
+ 1: neut
205
+ 2: pos
206
+ 3: neg_pos
207
+ - name: service
208
+ dtype:
209
+ class_label:
210
+ names:
211
+ 0: neg
212
+ 1: neut
213
+ 2: pos
214
+ 3: neg_pos
215
+ - name: sunrise_meal
216
+ dtype:
217
+ class_label:
218
+ names:
219
+ 0: neg
220
+ 1: neut
221
+ 2: pos
222
+ 3: neg_pos
223
+ - name: tv
224
+ dtype:
225
+ class_label:
226
+ names:
227
+ 0: neg
228
+ 1: neut
229
+ 2: pos
230
+ 3: neg_pos
231
+ - name: wifi
232
+ dtype:
233
+ class_label:
234
+ names:
235
+ 0: neg
236
+ 1: neut
237
+ 2: pos
238
+ 3: neg_pos
239
+ splits:
240
+ - name: train
241
+ num_bytes: 458177
242
+ num_examples: 2283
243
+ - name: validation
244
+ num_bytes: 58248
245
+ num_examples: 285
246
+ - name: test
247
+ num_bytes: 56399
248
+ num_examples: 286
249
+ download_size: 477314
250
+ dataset_size: 572824
251
+ - config_name: wrete
252
+ features:
253
+ - name: premise
254
+ dtype: string
255
+ - name: hypothesis
256
+ dtype: string
257
+ - name: category
258
+ dtype: string
259
+ - name: label
260
+ dtype:
261
+ class_label:
262
+ names:
263
+ 0: NotEntail
264
+ 1: Entail_or_Paraphrase
265
+ splits:
266
+ - name: train
267
+ num_bytes: 99999
268
+ num_examples: 300
269
+ - name: validation
270
+ num_bytes: 18049
271
+ num_examples: 50
272
+ - name: test
273
+ num_bytes: 32617
274
+ num_examples: 100
275
+ download_size: 151018
276
+ dataset_size: 150665
277
+ - config_name: posp
278
+ features:
279
+ - name: tokens
280
+ sequence: string
281
+ - name: pos_tags
282
+ sequence:
283
+ class_label:
284
+ names:
285
+ 0: B-PPO
286
+ 1: B-KUA
287
+ 2: B-ADV
288
+ 3: B-PRN
289
+ 4: B-VBI
290
+ 5: B-PAR
291
+ 6: B-VBP
292
+ 7: B-NNP
293
+ 8: B-UNS
294
+ 9: B-VBT
295
+ 10: B-VBL
296
+ 11: B-NNO
297
+ 12: B-ADJ
298
+ 13: B-PRR
299
+ 14: B-PRK
300
+ 15: B-CCN
301
+ 16: B-$$$
302
+ 17: B-ADK
303
+ 18: B-ART
304
+ 19: B-CSN
305
+ 20: B-NUM
306
+ 21: B-SYM
307
+ 22: B-INT
308
+ 23: B-NEG
309
+ 24: B-PRI
310
+ 25: B-VBE
311
+ splits:
312
+ - name: train
313
+ num_bytes: 2751348
314
+ num_examples: 6720
315
+ - name: validation
316
+ num_bytes: 343924
317
+ num_examples: 840
318
+ - name: test
319
+ num_bytes: 350720
320
+ num_examples: 840
321
+ download_size: 2407206
322
+ dataset_size: 3445992
323
+ - config_name: bapos
324
+ features:
325
+ - name: tokens
326
+ sequence: string
327
+ - name: pos_tags
328
+ sequence:
329
+ class_label:
330
+ names:
331
+ 0: B-PR
332
+ 1: B-CD
333
+ 2: I-PR
334
+ 3: B-SYM
335
+ 4: B-JJ
336
+ 5: B-DT
337
+ 6: I-UH
338
+ 7: I-NND
339
+ 8: B-SC
340
+ 9: I-WH
341
+ 10: I-IN
342
+ 11: I-NNP
343
+ 12: I-VB
344
+ 13: B-IN
345
+ 14: B-NND
346
+ 15: I-CD
347
+ 16: I-JJ
348
+ 17: I-X
349
+ 18: B-OD
350
+ 19: B-RP
351
+ 20: B-RB
352
+ 21: B-NNP
353
+ 22: I-RB
354
+ 23: I-Z
355
+ 24: B-CC
356
+ 25: B-NEG
357
+ 26: B-VB
358
+ 27: B-NN
359
+ 28: B-MD
360
+ 29: B-UH
361
+ 30: I-NN
362
+ 31: B-PRP
363
+ 32: I-SC
364
+ 33: B-Z
365
+ 34: I-PRP
366
+ 35: I-OD
367
+ 36: I-SYM
368
+ 37: B-WH
369
+ 38: B-FW
370
+ 39: I-CC
371
+ 40: B-X
372
+ splits:
373
+ - name: train
374
+ num_bytes: 3772459
375
+ num_examples: 8000
376
+ - name: validation
377
+ num_bytes: 460058
378
+ num_examples: 1000
379
+ - name: test
380
+ num_bytes: 474368
381
+ num_examples: 1029
382
+ download_size: 3084021
383
+ dataset_size: 4706885
384
+ - config_name: terma
385
+ features:
386
+ - name: tokens
387
+ sequence: string
388
+ - name: seq_label
389
+ sequence:
390
+ class_label:
391
+ names:
392
+ 0: I-SENTIMENT
393
+ 1: O
394
+ 2: I-ASPECT
395
+ 3: B-SENTIMENT
396
+ 4: B-ASPECT
397
+ splits:
398
+ - name: train
399
+ num_bytes: 817983
400
+ num_examples: 3000
401
+ - name: validation
402
+ num_bytes: 276335
403
+ num_examples: 1000
404
+ - name: test
405
+ num_bytes: 265922
406
+ num_examples: 1000
407
+ download_size: 816822
408
+ dataset_size: 1360240
409
+ - config_name: keps
410
+ features:
411
+ - name: tokens
412
+ sequence: string
413
+ - name: seq_label
414
+ sequence:
415
+ class_label:
416
+ names:
417
+ 0: O
418
+ 1: B
419
+ 2: I
420
+ splits:
421
+ - name: train
422
+ num_bytes: 173961
423
+ num_examples: 800
424
+ - name: validation
425
+ num_bytes: 42961
426
+ num_examples: 200
427
+ - name: test
428
+ num_bytes: 66762
429
+ num_examples: 247
430
+ download_size: 134042
431
+ dataset_size: 283684
432
+ - config_name: nergrit
433
+ features:
434
+ - name: tokens
435
+ sequence: string
436
+ - name: ner_tags
437
+ sequence:
438
+ class_label:
439
+ names:
440
+ 0: I-PERSON
441
+ 1: B-ORGANISATION
442
+ 2: I-ORGANISATION
443
+ 3: B-PLACE
444
+ 4: I-PLACE
445
+ 5: O
446
+ 6: B-PERSON
447
+ splits:
448
+ - name: train
449
+ num_bytes: 960710
450
+ num_examples: 1672
451
+ - name: validation
452
+ num_bytes: 119567
453
+ num_examples: 209
454
+ - name: test
455
+ num_bytes: 117274
456
+ num_examples: 209
457
+ download_size: 641265
458
+ dataset_size: 1197551
459
+ - config_name: nerp
460
+ features:
461
+ - name: tokens
462
+ sequence: string
463
+ - name: ner_tags
464
+ sequence:
465
+ class_label:
466
+ names:
467
+ 0: I-PPL
468
+ 1: B-EVT
469
+ 2: B-PLC
470
+ 3: I-IND
471
+ 4: B-IND
472
+ 5: B-FNB
473
+ 6: I-EVT
474
+ 7: B-PPL
475
+ 8: I-PLC
476
+ 9: O
477
+ 10: I-FNB
478
+ splits:
479
+ - name: train
480
+ num_bytes: 2751348
481
+ num_examples: 6720
482
+ - name: validation
483
+ num_bytes: 343924
484
+ num_examples: 840
485
+ - name: test
486
+ num_bytes: 350720
487
+ num_examples: 840
488
+ download_size: 1725986
489
+ dataset_size: 3445992
490
+ - config_name: facqa
491
+ features:
492
+ - name: question
493
+ sequence: string
494
+ - name: passage
495
+ sequence: string
496
+ - name: seq_label
497
+ sequence:
498
+ class_label:
499
+ names:
500
+ 0: O
501
+ 1: B
502
+ 2: I
503
+ splits:
504
+ - name: train
505
+ num_bytes: 2454368
506
+ num_examples: 2495
507
+ - name: validation
508
+ num_bytes: 306249
509
+ num_examples: 311
510
+ - name: test
511
+ num_bytes: 306831
512
+ num_examples: 311
513
+ download_size: 2591968
514
+ dataset_size: 3067448
515
+ ---
516
+
517
+
518
+ # Dataset Card for IndoNLU
519
+
520
+ ## Table of Contents
521
+ - [Dataset Description](#dataset-description)
522
+ - [Dataset Summary](#dataset-summary)
523
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
524
+ - [Languages](#languages)
525
+ - [Dataset Structure](#dataset-structure)
526
+ - [Data Instances](#data-instances)
527
+ - [Data Fields](#data-fields)
528
+ - [Data Splits](#data-splits)
529
+ - [Dataset Creation](#dataset-creation)
530
+ - [Curation Rationale](#curation-rationale)
531
+ - [Source Data](#source-data)
532
+ - [Annotations](#annotations)
533
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
534
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
535
+ - [Social Impact of Dataset](#social-impact-of-dataset)
536
+ - [Discussion of Biases](#discussion-of-biases)
537
+ - [Other Known Limitations](#other-known-limitations)
538
+ - [Additional Information](#additional-information)
539
+ - [Dataset Curators](#dataset-curators)
540
+ - [Licensing Information](#licensing-information)
541
+ - [Citation Information](#citation-information)
542
+ - [Contributions](#contributions)
543
+
544
+ ## Dataset Description
545
+
546
+ - **Homepage:** [IndoNLU Website](https://www.indobenchmark.com/)
547
+ - **Repository:** [IndoNLU GitHub](https://github.com/indobenchmark/indonlu)
548
+ - **Paper:** [IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding](https://www.aclweb.org/anthology/2020aacl-main.85.pdf)
549
+ - **Leaderboard:** [Needs More Information]
550
+ - **Point of Contact:** [Needs More Information]
551
+
552
+ ### Dataset Summary
553
+
554
+ The IndoNLU benchmark is a collection of resources for training, evaluating, and analyzing natural language understanding systems for Bahasa Indonesia (Indonesian language).
555
+ There are 12 datasets in IndoNLU benchmark for Indonesian natural language understanding.
556
+ 1. `EmoT`: An emotion classification dataset collected from the social media platform Twitter. The dataset consists of around 4000 Indonesian colloquial language tweets, covering five different emotion labels: anger, fear, happy, love, and sadness
557
+ 2. `SmSA`: This sentence-level sentiment analysis dataset is a collection of comments and reviews in Indonesian obtained from multiple online platforms. The text was crawled and then annotated by several Indonesian linguists to construct this dataset. There are three possible sentiments on the `SmSA` dataset: positive, negative, and neutral
558
+ 3. `CASA`: An aspect-based sentiment analysis dataset consisting of around a thousand car reviews collected from multiple Indonesian online automobile platforms. The dataset covers six aspects of car quality. We define the task to be a multi-label classification task, where each label represents a sentiment for a single aspect with three possible values: positive, negative, and neutral.
559
+ 4. `HoASA`: An aspect-based sentiment analysis dataset consisting of hotel reviews collected from the hotel aggregator platform, [AiryRooms](https://github.com/annisanurulazhar/absa-playground). The dataset covers ten different aspects of hotel quality. Similar to the `CASA` dataset, each review is labeled with a single sentiment label for each aspect. There are four possible sentiment classes for each sentiment label: positive, negative, neutral, and positive-negative. The positivenegative label is given to a review that contains multiple sentiments of the same aspect but for different objects (e.g., cleanliness of bed and toilet).
560
+ 5. `WReTE`: The Wiki Revision Edits Textual Entailment dataset consists of 450 sentence pairs constructed from Wikipedia revision history. The dataset contains pairs of sentences and binary semantic relations between the pairs. The data are labeled as entailed when the meaning of the second sentence can be derived from the first one, and not entailed otherwise.
561
+ 6. `POSP`: This Indonesian part-of-speech tagging (POS) dataset is collected from Indonesian news websites. The dataset consists of around 8000 sentences with 26 POS tags. The POS tag labels follow the [Indonesian Association of Computational Linguistics (INACL) POS Tagging Convention](http://inacl.id/inacl/wp-content/uploads/2017/06/INACL-POS-Tagging-Convention-26-Mei.pdf).
562
+ 7. `BaPOS`: This POS tagging dataset contains about 1000 sentences, collected from the [PAN Localization Project](http://www.panl10n.net/). In this dataset, each word is tagged by one of [23 POS tag classes](https://bahasa.cs.ui.ac.id/postag/downloads/Tagset.pdf). Data splitting used in this benchmark follows the experimental setting used by [Kurniawan and Aji (2018)](https://arxiv.org/abs/1809.03391).
563
+ 8. `TermA`: This span-extraction dataset is collected from the hotel aggregator platform, [AiryRooms](https://github.com/jordhy97/final_project). The dataset consists of thousands of hotel reviews, which each contain a span label for aspect and sentiment words representing the opinion of the reviewer on the corresponding aspect. The labels use Inside-Outside-Beginning (IOB) tagging representation with two kinds of tags, aspect and sentiment.
564
+ 9. `KEPS`: This keyphrase extraction dataset consists of text from Twitter discussing banking products and services and is written in the Indonesian language. A phrase containing important information is considered a keyphrase. Text may contain one or more keyphrases since important phrases can be located at different positions. The dataset follows the IOB chunking format, which represents the position of the keyphrase.
565
+ 10. `NERGrit`: This NER dataset is taken from the [Grit-ID repository](https://github.com/grit-id/nergrit-corpus), and the labels are spans in IOB chunking representation. The dataset consists of three kinds of named entity tags, PERSON (name of person), PLACE (name of location), and ORGANIZATION (name of organization).
566
+ 11. `NERP`: This NER dataset (Hoesen and Purwarianti, 2018) contains texts collected from several Indonesian news websites. There are five labels available in this dataset, PER (name of person), LOC (name of location), IND (name of product or brand), EVT (name of the event), and FNB (name of food and beverage). Similar to the `TermA` dataset, the `NERP` dataset uses the IOB chunking format.
567
+ 12. `FacQA`: The goal of the FacQA dataset is to find the answer to a question from a provided short passage from a news article. Each row in the FacQA dataset consists of a question, a short passage, and a label phrase, which can be found inside the corresponding short passage. There are six categories of questions: date, location, name, organization, person, and quantitative.
568
+
569
+ ### Supported Tasks and Leaderboards
570
+
571
+ [Needs More Information]
572
+
573
+ ### Languages
574
+
575
+ Indonesian
576
+
577
+ ## Dataset Structure
578
+
579
+ ### Data Instances
580
+
581
+ 1. `EmoT` dataset
582
+
583
+ A data point consists of `tweet` and `label`. An example from the train set looks as follows:
584
+ ```
585
+ {
586
+ 'tweet': 'Ini adalah hal yang paling membahagiakan saat biasku foto bersama ELF #ReturnOfTheLittlePrince #HappyHeeChulDay'
587
+ 'label': 4,
588
+ }
589
+ ```
590
+
591
+ 2. `SmSA` dataset
592
+
593
+ A data point consists of `text` and `label`. An example from the train set looks as follows:
594
+ ```
595
+ {
596
+ 'text': 'warung ini dimiliki oleh pengusaha pabrik tahu yang sudah puluhan tahun terkenal membuat tahu putih di bandung . tahu berkualitas , dipadu keahlian memasak , dipadu kretivitas , jadilah warung yang menyajikan menu utama berbahan tahu , ditambah menu umum lain seperti ayam . semuanya selera indonesia . harga cukup terjangkau . jangan lewatkan tahu bletoka nya , tidak kalah dengan yang asli dari tegal !'
597
+ 'label': 0,
598
+ }
599
+ ```
600
+
601
+ 3. `CASA` dataset
602
+
603
+ A data point consists of `sentence` and multi-label `feature`, `machine`, `others`, `part`, `price`, and `service`. An example from the train set looks as follows:
604
+ ```
605
+ {
606
+ 'sentence': 'Saya memakai Honda Jazz GK5 tahun 2014 ( pertama meluncur ) . Mobil nya bagus dan enak sesuai moto nya menyenangkan untuk dikendarai',
607
+ 'fuel': 1,
608
+ 'machine': 1,
609
+ 'others': 2,
610
+ 'part': 1,
611
+ 'price': 1,
612
+ 'service': 1
613
+ }
614
+ ```
615
+
616
+ 4. `HoASA` dataset
617
+
618
+ A data point consists of `sentence` and multi-label `ac`, `air_panas`, `bau`, `general`, `kebersihan`, `linen`, `service`, `sunrise_meal`, `tv`, and `wifi`. An example from the train set looks as follows:
619
+ ```
620
+ {
621
+ 'sentence': 'kebersihan kurang...',
622
+ 'ac': 1,
623
+ 'air_panas': 1,
624
+ 'bau': 1,
625
+ 'general': 1,
626
+ 'kebersihan': 0,
627
+ 'linen': 1,
628
+ 'service': 1,
629
+ 'sunrise_meal': 1,
630
+ 'tv': 1,
631
+ 'wifi': 1
632
+ }
633
+ ```
634
+
635
+ 5. `WreTE` dataset
636
+
637
+ A data point consists of `premise`, `hypothesis`, `category`, and `label`. An example from the train set looks as follows:
638
+ ```
639
+ {
640
+ 'premise': 'Pada awalnya bangsa Israel hanya terdiri dari satu kelompok keluarga di antara banyak kelompok keluarga yang hidup di tanah Kanan pada abad 18 SM .',
641
+ 'hypothesis': 'Pada awalnya bangsa Yahudi hanya terdiri dari satu kelompok keluarga di antara banyak kelompok keluarga yang hidup di tanah Kanan pada abad 18 SM .'
642
+ 'category': 'menolak perubahan teks terakhir oleh istimewa kontribusi pengguna 141 109 98 87 141 109 98 87 dan mengembalikan revisi 6958053 oleh johnthorne',
643
+ 'label': 0,
644
+ }
645
+ ```
646
+
647
+ 6. `POSP` dataset
648
+
649
+ A data point consists of `tokens` and `pos_tags`. An example from the train set looks as follows:
650
+ ```
651
+ {
652
+ 'tokens': ['kepala', 'dinas', 'tata', 'kota', 'manado', 'amos', 'kenda', 'menyatakan', 'tidak', 'tahu', '-', 'menahu', 'soal', 'pencabutan', 'baliho', '.', 'ia', 'enggan', 'berkomentar', 'banyak', 'karena', 'merasa', 'bukan', 'kewenangannya', '.'],
653
+ 'pos_tags': [11, 6, 11, 11, 7, 7, 7, 9, 23, 4, 21, 9, 11, 11, 11, 21, 3, 2, 4, 1, 19, 9, 23, 11, 21]
654
+ }
655
+ ```
656
+
657
+ 7. `BaPOS` dataset
658
+
659
+ A data point consists of `tokens` and `pos_tags`. An example from the train set looks as follows:
660
+ ```
661
+ {
662
+ 'tokens': ['Kera', 'untuk', 'amankan', 'pesta', 'olahraga'],
663
+ 'pos_tags': [27, 8, 26, 27, 30]
664
+ }
665
+ ```
666
+
667
+ 8. `TermA` dataset
668
+
669
+ A data point consists of `tokens` and `seq_label`. An example from the train set looks as follows:
670
+ ```
671
+ {
672
+ 'tokens': ['kamar', 'saya', 'ada', 'kendala', 'di', 'ac', 'tidak', 'berfungsi', 'optimal', '.', 'dan', 'juga', 'wifi', 'koneksi', 'kurang', 'stabil', '.'],
673
+ 'seq_label': [1, 1, 1, 1, 1, 4, 3, 0, 0, 1, 1, 1, 4, 2, 3, 0, 1]
674
+ }
675
+ ```
676
+
677
+ 9. `KEPS` dataset
678
+
679
+ A data point consists of `tokens` and `seq_label`. An example from the train set looks as follows:
680
+ ```
681
+ {
682
+ 'tokens': ['Setelah', 'melalui', 'proses', 'telepon', 'yang', 'panjang', 'tutup', 'sudah', 'kartu', 'kredit', 'bca', 'Ribet'],
683
+ 'seq_label': [0, 1, 1, 2, 0, 0, 1, 0, 1, 2, 2, 1]
684
+ }
685
+ ```
686
+
687
+ 10. `NERGrit` dataset
688
+
689
+ A data point consists of `tokens` and `ner_tags`. An example from the train set looks as follows:
690
+ ```
691
+ {
692
+ 'tokens': ['Kontribusinya', 'terhadap', 'industri', 'musik', 'telah', 'mengumpulkan', 'banyak', 'prestasi', 'termasuk', 'lima', 'Grammy', 'Awards', ',', 'serta', 'dua', 'belas', 'nominasi', ';', 'dua', 'Guinness', 'World', 'Records', ';', 'dan', 'penjualannya', 'diperkirakan', 'sekitar', '64', 'juta', 'rekaman', '.'],
693
+ 'ner_tags': [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]}
694
+ ```
695
+
696
+ 11. `NERP` dataset
697
+
698
+ A data point consists of `tokens` and `ner_tags`. An example from the train set looks as follows:
699
+ ```
700
+ {
701
+ 'tokens': ['kepala', 'dinas', 'tata', 'kota', 'manado', 'amos', 'kenda', 'menyatakan', 'tidak', 'tahu', '-', 'menahu', 'soal', 'pencabutan', 'baliho', '.', 'ia', 'enggan', 'berkomentar', 'banyak', 'karena', 'merasa', 'bukan', 'kewenangannya', '.'],
702
+ 'ner_tags': [9, 9, 9, 9, 2, 7, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]
703
+ }
704
+ ```
705
+
706
+ 12. `FacQA` dataset
707
+
708
+ A data point consists of `question`, `passage`, and `seq_label`. An example from the train set looks as follows:
709
+ ```
710
+ {
711
+ 'passage': ['Lewat', 'telepon', 'ke', 'kantor', 'berita', 'lokal', 'Current', 'News', 'Service', ',', 'Hezb-ul', 'Mujahedeen', ',', 'kelompok', 'militan', 'Kashmir', 'yang', 'terbesar', ',', 'menyatakan', 'bertanggung', 'jawab', 'atas', 'ledakan', 'di', 'Srinagar', '.'],
712
+ 'question': ['Kelompok', 'apakah', 'yang', 'menyatakan', 'bertanggung', 'jawab', 'atas', 'ledakan', 'di', 'Srinagar', '?'],
713
+ 'seq_label': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
714
+ }
715
+ ```
716
+
717
+ ### Data Fields
718
+
719
+ 1. `EmoT` dataset
720
+
721
+ - `tweet`: a `string` feature.
722
+ - `label`: an emotion label, with possible values including `sadness`, `anger`, `love`, `fear`, `happy`.
723
+
724
+ 2. `SmSA` dataset
725
+
726
+ - `text`: a `string` feature.
727
+ - `label`: a sentiment label, with possible values including `positive`, `neutral`, `negative`.
728
+
729
+ 3. `CASA` dataset
730
+
731
+ - `sentence`: a `string` feature.
732
+ - `fuel`: a sentiment label, with possible values including `negative`, `neutral`, `positive`.
733
+ - `machine`: a sentiment label, with possible values including `negative`, `neutral`, `positive`.
734
+ - `others`: a sentiment label, with possible values including `negative`, `neutral`, `positive`.
735
+ - `part`: a sentiment label, with possible values including `negative`, `neutral`, `positive`.
736
+ - `price`: a sentiment label, with possible values including `negative`, `neutral`, `positive`.
737
+ - `service`: a sentiment label, with possible values including `negative`, `neutral`, `positive`.
738
+
739
+ 4. `HoASA` dataset
740
+
741
+ - `sentence`: a `string` feature.
742
+ - `ac`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
743
+ - `air_panas`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
744
+ - `bau`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
745
+ - `general`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
746
+ - `kebersihan`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
747
+ - `linen`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
748
+ - `service`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
749
+ - `sunrise_meal`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
750
+ - `tv`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
751
+ - `wifi`: a sentiment label, with possible values including `neg`, `neut`, `pos`, `neg_pos`.
752
+
753
+ 5. `WReTE` dataset
754
+
755
+ - `premise`: a `string` feature.
756
+ - `hypothesis`: a `string` feature.
757
+ - `category`: a `string` feature.
758
+ - `label`: a classification label, with possible values including `NotEntail`, `Entail_or_Paraphrase`.
759
+
760
+ 6. `POSP` dataset
761
+
762
+ - `tokens`: a `list` of `string` features.
763
+ - `pos_tags`: a `list` of POS tag labels, with possible values including `B-PPO`, `B-KUA`, `B-ADV`, `B-PRN`, `B-VBI`.
764
+
765
+ The POS tag labels follow the [Indonesian Association of Computational Linguistics (INACL) POS Tagging Convention](http://inacl.id/inacl/wp-content/uploads/2017/06/INACLPOS-Tagging-Convention-26-Mei.pdf).
766
+
767
+ 7. `BaPOS` dataset
768
+
769
+ - `tokens`: a `list` of `string` features.
770
+ - `pos_tags`: a `list` of POS tag labels, with possible values including `B-PR`, `B-CD`, `I-PR`, `B-SYM`, `B-JJ`.
771
+
772
+ The POS tag labels from [Tagset UI](https://bahasa.cs.ui.ac.id/postag/downloads/Tagset.pdf).
773
+
774
+ 8. `TermA` dataset
775
+
776
+ - `tokens`: a `list` of `string` features.
777
+ - `seq_label`: a `list` of classification labels, with possible values including `I-SENTIMENT`, `O`, `I-ASPECT`, `B-SENTIMENT`, `B-ASPECT`.
778
+
779
+ 9. `KEPS` dataset
780
+
781
+ - `tokens`: a `list` of `string` features.
782
+ - `seq_label`: a `list` of classification labels, with possible values including `O`, `B`, `I`.
783
+
784
+ The labels use Inside-Outside-Beginning (IOB) tagging.
785
+
786
+ 10. `NERGrit` dataset
787
+
788
+ - `tokens`: a `list` of `string` features.
789
+ - `ner_tags`: a `list` of NER tag labels, with possible values including `I-PERSON`, `B-ORGANISATION`, `I-ORGANISATION`, `B-PLACE`, `I-PLACE`.
790
+
791
+ The labels use Inside-Outside-Beginning (IOB) tagging.
792
+
793
+ 11. `NERP` dataset
794
+
795
+ - `tokens`: a `list` of `string` features.
796
+ - `ner_tags`: a `list` of NER tag labels, with possible values including `I-PPL`, `B-EVT`, `B-PLC`, `I-IND`, `B-IND`.
797
+
798
+ 12. `FacQA` dataset
799
+
800
+ - `question`: a `list` of `string` features.
801
+ - `passage`: a `list` of `string` features.
802
+ - `seq_label`: a `list` of classification labels, with possible values including `O`, `B`, `I`.
803
+
804
+ ### Data Splits
805
+
806
+ The data is split into a training, validation and test set.
807
+
808
+ | | dataset | Train | Valid | Test |
809
+ |----|---------|-------|-------|------|
810
+ | 1 | EmoT | 3521 | 440 | 440 |
811
+ | 2 | SmSA | 11000 | 1260 | 500 |
812
+ | 3 | CASA | 810 | 90 | 180 |
813
+ | 4 | HoASA | 2283 | 285 | 286 |
814
+ | 5 | WReTE | 300 | 50 | 100 |
815
+ | 6 | POSP | 6720 | 840 | 840 |
816
+ | 7 | BaPOS | 8000 | 1000 | 1029 |
817
+ | 8 | TermA | 3000 | 1000 | 1000 |
818
+ | 9 | KEPS | 800 | 200 | 247 |
819
+ | 10 | NERGrit | 1672 | 209 | 209 |
820
+ | 11 | NERP | 6720 | 840 | 840 |
821
+ | 12 | FacQA | 2495 | 311 | 311 |
822
+
823
+ ## Dataset Creation
824
+
825
+ ### Curation Rationale
826
+
827
+ [Needs More Information]
828
+
829
+ ### Source Data
830
+
831
+ #### Initial Data Collection and Normalization
832
+
833
+ [Needs More Information]
834
+
835
+ #### Who are the source language producers?
836
+
837
+ [Needs More Information]
838
+
839
+ ### Annotations
840
+
841
+ #### Annotation process
842
+
843
+ [Needs More Information]
844
+
845
+ #### Who are the annotators?
846
+
847
+ [Needs More Information]
848
+
849
+ ### Personal and Sensitive Information
850
+
851
+ [Needs More Information]
852
+
853
+ ## Considerations for Using the Data
854
+
855
+ ### Social Impact of Dataset
856
+
857
+ [Needs More Information]
858
+
859
+ ### Discussion of Biases
860
+
861
+ [Needs More Information]
862
+
863
+ ### Other Known Limitations
864
+
865
+ [Needs More Information]
866
+
867
+ ## Additional Information
868
+
869
+ ### Dataset Curators
870
+
871
+ [Needs More Information]
872
+
873
+ ### Licensing Information
874
+
875
+ The licensing status of the IndoNLU benchmark datasets is under MIT License.
876
+
877
+ ### Citation Information
878
+
879
+ IndoNLU citation
880
+ ```
881
+ @inproceedings{wilie2020indonlu,
882
+ title={IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},
883
+ author={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},
884
+ booktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},
885
+ year={2020}
886
+ }
887
+ ```
888
+
889
+ `EmoT` dataset citation
890
+ ```
891
+ @inproceedings{saputri2018emotion,
892
+ title={Emotion Classification on Indonesian Twitter Dataset},
893
+ author={Mei Silviana Saputri, Rahmad Mahendra, and Mirna Adriani},
894
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing(IALP)},
895
+ pages={90--95},
896
+ year={2018},
897
+ organization={IEEE}
898
+ }
899
+ ```
900
+
901
+ `SmSA` dataset citation
902
+ ```
903
+ @inproceedings{purwarianti2019improving,
904
+ title={Improving Bi-LSTM Performance for Indonesian Sentiment Analysis Using Paragraph Vector},
905
+ author={Ayu Purwarianti and Ida Ayu Putu Ari Crisdayanti},
906
+ booktitle={Proceedings of the 2019 International Conference of Advanced Informatics: Concepts, Theory and Applications (ICAICTA)},
907
+ pages={1--5},
908
+ year={2019},
909
+ organization={IEEE}
910
+ }
911
+ ```
912
+
913
+ `CASA` dataset citation
914
+ ```
915
+ @inproceedings{ilmania2018aspect,
916
+ title={Aspect Detection and Sentiment Classification Using Deep Neural Network for Indonesian Aspect-based Sentiment Analysis},
917
+ author={Arfinda Ilmania, Abdurrahman, Samuel Cahyawijaya, Ayu Purwarianti},
918
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing(IALP)},
919
+ pages={62--67},
920
+ year={2018},
921
+ organization={IEEE}
922
+ }
923
+ ```
924
+
925
+ `HoASA` dataset citation
926
+ ```
927
+ @inproceedings{azhar2019multi,
928
+ title={Multi-label Aspect Categorization with Convolutional Neural Networks and Extreme Gradient Boosting},
929
+ author={A. N. Azhar, M. L. Khodra, and A. P. Sutiono}
930
+ booktitle={Proceedings of the 2019 International Conference on Electrical Engineering and Informatics (ICEEI)},
931
+ pages={35--40},
932
+ year={2019}
933
+ }
934
+ ```
935
+
936
+ `WReTE` dataset citation
937
+ ```
938
+ @inproceedings{setya2018semi,
939
+ title={Semi-supervised Textual Entailment on Indonesian Wikipedia Data},
940
+ author={Ken Nabila Setya and Rahmad Mahendra},
941
+ booktitle={Proceedings of the 2018 International Conference on Computational Linguistics and Intelligent Text Processing (CICLing)},
942
+ year={2018}
943
+ }
944
+ ```
945
+
946
+ `POSP` dataset citation
947
+ ```
948
+ @inproceedings{hoesen2018investigating,
949
+ title={Investigating Bi-LSTM and CRF with POS Tag Embedding for Indonesian Named Entity Tagger},
950
+ author={Devin Hoesen and Ayu Purwarianti},
951
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},
952
+ pages={35--38},
953
+ year={2018},
954
+ organization={IEEE}
955
+ }
956
+ ```
957
+
958
+ `BaPOS` dataset citation
959
+ ```
960
+ @inproceedings{dinakaramani2014designing,
961
+ title={Designing an Indonesian Part of Speech Tagset and Manually Tagged Indonesian Corpus},
962
+ author={Arawinda Dinakaramani, Fam Rashel, Andry Luthfi, and Ruli Manurung},
963
+ booktitle={Proceedings of the 2014 International Conference on Asian Language Processing (IALP)},
964
+ pages={66--69},
965
+ year={2014},
966
+ organization={IEEE}
967
+ }
968
+ @inproceedings{kurniawan2018toward,
969
+ title={Toward a Standardized and More Accurate Indonesian Part-of-Speech Tagging},
970
+ author={Kemal Kurniawan and Alham Fikri Aji},
971
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},
972
+ pages={303--307},
973
+ year={2018},
974
+ organization={IEEE}
975
+ }
976
+ ```
977
+
978
+ `TermA` dataset citation
979
+ ```
980
+ @article{winatmoko2019aspect,
981
+ title={Aspect and Opinion Term Extraction for Hotel Reviews Using Transfer Learning and Auxiliary Labels},
982
+ author={Yosef Ardhito Winatmoko, Ali Akbar Septiandri, Arie Pratama Sutiono},
983
+ journal={arXiv preprint arXiv:1909.11879},
984
+ year={2019}
985
+ }
986
+ @article{fernando2019aspect,
987
+ title={Aspect and Opinion Terms Extraction Using Double Embeddings and Attention Mechanism for Indonesian Hotel Reviews},
988
+ author={Jordhy Fernando, Masayu Leylia Khodra, Ali Akbar Septiandri},
989
+ journal={arXiv preprint arXiv:1908.04899},
990
+ year={2019}
991
+ }
992
+ ```
993
+
994
+ `KEPS` dataset citation
995
+ ```
996
+ @inproceedings{mahfuzh2019improving,
997
+ title={Improving Joint Layer RNN based Keyphrase Extraction by Using Syntactical Features},
998
+ author={Miftahul Mahfuzh, Sidik Soleman, and Ayu Purwarianti},
999
+ booktitle={Proceedings of the 2019 International Conference of Advanced Informatics: Concepts, Theory and Applications (ICAICTA)},
1000
+ pages={1--6},
1001
+ year={2019},
1002
+ organization={IEEE}
1003
+ }
1004
+ ```
1005
+
1006
+ `NERGrit` dataset citation
1007
+ ```
1008
+ @online{nergrit2019,
1009
+ title={NERGrit Corpus},
1010
+ author={NERGrit Developers},
1011
+ year={2019},
1012
+ url={https://github.com/grit-id/nergrit-corpus}
1013
+ }
1014
+ ```
1015
+
1016
+ `NERP` dataset citation
1017
+ ```
1018
+ @inproceedings{hoesen2018investigating,
1019
+ title={Investigating Bi-LSTM and CRF with POS Tag Embedding for Indonesian Named Entity Tagger},
1020
+ author={Devin Hoesen and Ayu Purwarianti},
1021
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},
1022
+ pages={35--38},
1023
+ year={2018},
1024
+ organization={IEEE}
1025
+ }
1026
+ ```
1027
+
1028
+ `FacQA` dataset citation
1029
+ ```
1030
+ @inproceedings{purwarianti2007machine,
1031
+ title={A Machine Learning Approach for Indonesian Question Answering System},
1032
+ author={Ayu Purwarianti, Masatoshi Tsuchiya, and Seiichi Nakagawa},
1033
+ booktitle={Proceedings of Artificial Intelligence and Applications },
1034
+ pages={573--578},
1035
+ year={2007}
1036
+ }
1037
+ ```
1038
+
1039
+ ### Contributions
1040
+
1041
+ Thanks to [@yasirabd](https://github.com/yasirabd) for adding this dataset.
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"emot": {"description": "An emotion classification dataset collected from the social media\nplatform Twitter (Saputri et al., 2018). The dataset consists of\naround 4000 Indonesian colloquial language tweets, covering five\ndifferent emotion labels: sadness, anger, love, fear, and happy.", "citation": "@inproceedings{saputri2018emotion,\n title={Emotion Classification on Indonesian Twitter Dataset},\n author={Mei Silviana Saputri, Rahmad Mahendra, and Mirna Adriani},\n booktitle={Proceedings of the 2018 International Conference on Asian Language Processing(IALP)},\n pages={90--95},\n year={2018},\n organization={IEEE}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"tweet": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 5, "names": ["sadness", "anger", "love", "fear", "happy"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "emot", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 686418, "num_examples": 3521, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 84082, "num_examples": 440, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 84856, "num_examples": 440, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/emot_emotion-twitter/train_preprocess.csv": {"num_bytes": 674924, "checksum": "51bb4e77d989004d0ca49c158f404d7eda956015a18b805401f7dee9b4d85fc1"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/emot_emotion-twitter/valid_preprocess.csv": {"num_bytes": 82619, "checksum": "3cba3d7b2cc3afa5cdd452a13df2498ff8a32b420f59ed10a48e41a452c98f50"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/emot_emotion-twitter/test_preprocess_masked_label.csv": {"num_bytes": 83374, "checksum": "85426e71254016c9d85707b77a15ae494eb44b5d1412dbe937c2b74c133293e9"}}, "download_size": 840917, "post_processing_size": null, "dataset_size": 855356, "size_in_bytes": 1696273}, "smsa": {"description": "This sentence-level sentiment analysis dataset (Purwarianti and Crisdayanti, 2019)\nis a collection of comments and reviews in Indonesian obtained from multiple online\nplatforms. The text was crawled and then annotated by several Indonesian linguists\nto construct this dataset. There are three possible sentiments on the SmSA\ndataset: positive, negative, and neutral.", "citation": "@inproceedings{purwarianti2019improving,\n title={Improving Bi-LSTM Performance for Indonesian Sentiment Analysis Using Paragraph Vector},\n author={Ayu Purwarianti and Ida Ayu Putu Ari Crisdayanti},\n booktitle={Proceedings of the 2019 International Conference of Advanced Informatics: Concepts, Theory and Applications (ICAICTA)},\n pages={1--5},\n year={2019},\n organization={IEEE}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "smsa", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2209874, "num_examples": 11000, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 249629, "num_examples": 1260, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 77041, "num_examples": 500, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/train_preprocess.tsv": {"num_bytes": 2186718, "checksum": "50f38ceed9b31521bf1581e126620532cc9b790712938159a2cdcf6906977a9b"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/valid_preprocess.tsv": {"num_bytes": 246974, "checksum": "6ab41ddc9d58a35086f05ebd2e209c74cb03d87d4f51d6abdfba674eafbefa74"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/test_preprocess_masked_label.tsv": {"num_bytes": 75537, "checksum": "ecc239ad7a069774954843da50eba266398bab70d0370f74684bf1c107b64e70"}}, "download_size": 2509229, "post_processing_size": null, "dataset_size": 2536544, "size_in_bytes": 5045773}, "casa": {"description": "An aspect-based sentiment analysis dataset consisting of around a thousand car reviews collected\nfrom multiple Indonesian online automobile platforms (Ilmania et al., 2018). The dataset covers\nsix aspects of car quality. We define the task to be a multi-label classification task, where\neach label represents a sentiment for a single aspect with three possible values: positive,\nnegative, and neutral.", "citation": "@inproceedings{ilmania2018aspect,\n title={Aspect Detection and Sentiment Classification Using Deep Neural Network for Indonesian Aspect-based Sentiment Analysis},\n author={Arfinda Ilmania, Abdurrahman, Samuel Cahyawijaya, Ayu Purwarianti},\n booktitle={Proceedings of the 2018 International Conference on Asian Language Processing(IALP)},\n pages={62--67},\n year={2018},\n organization={IEEE}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}, "fuel": {"num_classes": 3, "names": ["negative", "neutral", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}, "machine": {"num_classes": 3, "names": ["negative", "neutral", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}, "others": {"num_classes": 3, "names": ["negative", "neutral", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}, "part": {"num_classes": 3, "names": ["negative", "neutral", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}, "price": {"num_classes": 3, "names": ["negative", "neutral", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}, "service": {"num_classes": 3, "names": ["negative", "neutral", "positive"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "casa", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 110415, "num_examples": 810, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 11993, "num_examples": 90, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 23553, "num_examples": 180, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/casa_absa-prosa/train_preprocess.csv": {"num_bytes": 109756, "checksum": "ffd2a88edf5e270cea79ad84d2ca4170c9a2fd71a38540280d5eb3b95d261f76"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/casa_absa-prosa/valid_preprocess.csv": {"num_bytes": 11952, "checksum": "4ea114d060796e59944b1cf7f0ad7950bd0532024348a17d0f7c6b6464328424"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/casa_absa-prosa/test_preprocess_masked_label.csv": {"num_bytes": 23195, "checksum": "9732fbd03cad76753a7bd237d1e17c979003b92b6b04730583d7d1e11796dd81"}}, "download_size": 144903, "post_processing_size": null, "dataset_size": 145961, "size_in_bytes": 290864}, "hoasa": {"description": "An aspect-based sentiment analysis dataset consisting of hotel reviews collected from the hotel\naggregator platform, AiryRooms (Azhar et al., 2019). The dataset covers ten different aspects of\nhotel quality. Each review is labeled with a single sentiment label for each aspect. There are\nfour possible sentiment classes for each sentiment label: positive, negative, neutral, and\npositive-negative. The positivenegative label is given to a review that contains multiple sentiments\nof the same aspect but for different objects (e.g., cleanliness of bed and toilet).", "citation": "@inproceedings{azhar2019multi,\n title={Multi-label Aspect Categorization with Convolutional Neural Networks and Extreme Gradient Boosting},\n author={A. N. Azhar, M. L. Khodra, and A. P. Sutiono}\n booktitle={Proceedings of the 2019 International Conference on Electrical Engineering and Informatics (ICEEI)},\n pages={35--40},\n year={2019}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}, "ac": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "air_panas": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "bau": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "general": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "kebersihan": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "linen": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "service": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "sunrise_meal": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "tv": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}, "wifi": {"num_classes": 4, "names": ["neg", "neut", "pos", "neg_pos"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "hoasa", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 458177, "num_examples": 2283, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 58248, "num_examples": 285, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 56399, "num_examples": 286, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/hoasa_absa-airy/train_preprocess.csv": {"num_bytes": 381239, "checksum": "752935b62235f1a719c5e526e4ac68b3ba452f84a2a6f911ef20cb855b23546d"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/hoasa_absa-airy/valid_preprocess.csv": {"num_bytes": 48696, "checksum": "7109001762f0bd83526d3de224c0ba5302bfb781eee6c1334aac8039a188f4fa"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/hoasa_absa-airy/test_preprocess_masked_label.csv": {"num_bytes": 47379, "checksum": "92f8a0d9e9ceec02a3340444b4b79a4f606d27f7dbe5867150d34a8ca7634e09"}}, "download_size": 477314, "post_processing_size": null, "dataset_size": 572824, "size_in_bytes": 1050138}, "wrete": {"description": "The Wiki Revision Edits Textual Entailment dataset (Setya and Mahendra, 2018) consists of 450 sentence pairs\nconstructed from Wikipedia revision history. The dataset contains pairs of sentences and binary semantic\nrelations between the pairs. The data are labeled as entailed when the meaning of the second sentence can be\nderived from the first one, and not entailed otherwise.", "citation": "@inproceedings{setya2018semi,\n title={Semi-supervised Textual Entailment on Indonesian Wikipedia Data},\n author={Ken Nabila Setya and Rahmad Mahendra},\n booktitle={Proceedings of the 2018 International Conference on Computational Linguistics and Intelligent Text Processing (CICLing)},\n year={2018}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"premise": {"dtype": "string", "id": null, "_type": "Value"}, "hypothesis": {"dtype": "string", "id": null, "_type": "Value"}, "category": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["NotEntail", "Entail_or_Paraphrase"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "wrete", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 99999, "num_examples": 300, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 18049, "num_examples": 50, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 32617, "num_examples": 100, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/wrete_entailment-ui/train_preprocess.csv": {"num_bytes": 100641, "checksum": "e135a85dad098127da179e305ebf0a1af63bc0cf06fdf79392293964d2920af3"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/wrete_entailment-ui/valid_preprocess.csv": {"num_bytes": 18191, "checksum": "623d0dc1389c37af6482277a05702329bddee96b73849f7341f9c5b269a55286"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/wrete_entailment-ui/test_preprocess_masked_label.csv": {"num_bytes": 32186, "checksum": "075a0de3a327546f04d83f345faffc45b4d2788ad7c3a2fdb11c23c29afba5a6"}}, "download_size": 151018, "post_processing_size": null, "dataset_size": 150665, "size_in_bytes": 301683}, "posp": {"description": "This Indonesian part-of-speech tagging (POS) dataset (Hoesen and Purwarianti, 2018) is collected from Indonesian\nnews websites. The dataset consists of around 8000 sentences with 26 POS tags. The POS tag labels follow the\nIndonesian Association of Computational Linguistics (INACL) POS Tagging Convention.", "citation": "@inproceedings{hoesen2018investigating,\n title={Investigating Bi-LSTM and CRF with POS Tag Embedding for Indonesian Named Entity Tagger},\n author={Devin Hoesen and Ayu Purwarianti},\n booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},\n pages={35--38},\n year={2018},\n organization={IEEE}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 26, "names": ["B-PPO", "B-KUA", "B-ADV", "B-PRN", "B-VBI", "B-PAR", "B-VBP", "B-NNP", "B-UNS", "B-VBT", "B-VBL", "B-NNO", "B-ADJ", "B-PRR", "B-PRK", "B-CCN", "B-$$$", "B-ADK", "B-ART", "B-CSN", "B-NUM", "B-SYM", "B-INT", "B-NEG", "B-PRI", "B-VBE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "posp", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2751348, "num_examples": 6720, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 343924, "num_examples": 840, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 350720, "num_examples": 840, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/posp_pos-prosa/train_preprocess.txt": {"num_bytes": 1922251, "checksum": "667d16f7e3e424fc1bf3d1aff8d99a0045ff07ca382c467f612d9ddc420803a1"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/posp_pos-prosa/valid_preprocess.txt": {"num_bytes": 239887, "checksum": "9af8289324391466c282132a8b47323b38e84daa3f0dd9b0d972da0a9f0970a9"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/posp_pos-prosa/test_preprocess_masked_label.txt": {"num_bytes": 245068, "checksum": "d120967bc7eaba5db88654902e2958af1ae7121e6a55b396e639cb8cf1d330d0"}}, "download_size": 2407206, "post_processing_size": null, "dataset_size": 3445992, "size_in_bytes": 5853198}, "bapos": {"description": "This POS tagging dataset (Dinakaramani et al., 2014) contains about 1000 sentences, collected from the PAN Localization\nProject. In this dataset, each word is tagged by one of 23 POS tag classes. Data splitting used in this benchmark follows\nthe experimental setting used by Kurniawan and Aji (2018)", "citation": "@inproceedings{dinakaramani2014designing,\n title={Designing an Indonesian Part of Speech Tagset and Manually Tagged Indonesian Corpus},\n author={Arawinda Dinakaramani, Fam Rashel, Andry Luthfi, and Ruli Manurung},\n booktitle={Proceedings of the 2014 International Conference on Asian Language Processing (IALP)},\n pages={66--69},\n year={2014},\n organization={IEEE}\n}\n@inproceedings{kurniawan2019toward,\n title={Toward a Standardized and More Accurate Indonesian Part-of-Speech Tagging},\n author={Kemal Kurniawan and Alham Fikri Aji},\n booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},\n pages={303--307},\n year={2018},\n organization={IEEE}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 41, "names": ["B-PR", "B-CD", "I-PR", "B-SYM", "B-JJ", "B-DT", "I-UH", "I-NND", "B-SC", "I-WH", "I-IN", "I-NNP", "I-VB", "B-IN", "B-NND", "I-CD", "I-JJ", "I-X", "B-OD", "B-RP", "B-RB", "B-NNP", "I-RB", "I-Z", "B-CC", "B-NEG", "B-VB", "B-NN", "B-MD", "B-UH", "I-NN", "B-PRP", "I-SC", "B-Z", "I-PRP", "I-OD", "I-SYM", "B-WH", "B-FW", "I-CC", "B-X"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "bapos", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3772459, "num_examples": 8000, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 460058, "num_examples": 1000, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 474368, "num_examples": 1029, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/bapos_pos-idn/train_preprocess.txt": {"num_bytes": 2450176, "checksum": "260f0808b494335c77b5475348e016d7b64fdea1fbd07b45a232b84bc3c300b4"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/bapos_pos-idn/valid_preprocess.txt": {"num_bytes": 300182, "checksum": "599eebd10e01eaa452625939ff022c527abebedac4a91e84cddfa57abccc3a12"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/bapos_pos-idn/test_preprocess_masked_label.txt": {"num_bytes": 333663, "checksum": "7dfabd5e212483677e17dceec50d0cd9854a206a7a6e3f99168b446ee2eff5e6"}}, "download_size": 3084021, "post_processing_size": null, "dataset_size": 4706885, "size_in_bytes": 7790906}, "terma": {"description": "This span-extraction dataset is collected from the hotel aggregator platform, AiryRooms (Septiandri and Sutiono, 2019;\nFernando et al., 2019). The dataset consists of thousands of hotel reviews, which each contain a span label for aspect\nand sentiment words representing the opinion of the reviewer on the corresponding aspect. The labels use\nInside-Outside-Beginning (IOB) tagging representation with two kinds of tags, aspect and sentiment.", "citation": "@article{winatmoko2019aspect,\n title={Aspect and Opinion Term Extraction for Hotel Reviews Using Transfer Learning and Auxiliary Labels},\n author={Yosef Ardhito Winatmoko, Ali Akbar Septiandri, Arie Pratama Sutiono},\n journal={arXiv preprint arXiv:1909.11879},\n year={2019}\n}\n@article{fernando2019aspect,\n title={Aspect and Opinion Terms Extraction Using Double Embeddings and Attention Mechanism for Indonesian Hotel Reviews},\n author={Jordhy Fernando, Masayu Leylia Khodra, Ali Akbar Septiandri},\n journal={arXiv preprint arXiv:1908.04899},\n year={2019}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "seq_label": {"feature": {"num_classes": 5, "names": ["I-SENTIMENT", "O", "I-ASPECT", "B-SENTIMENT", "B-ASPECT"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "terma", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 817983, "num_examples": 3000, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 276335, "num_examples": 1000, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 265922, "num_examples": 1000, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/terma_term-extraction-airy/train_preprocess.txt": {"num_bytes": 521607, "checksum": "5da1a89793eb0ea996874212e551a766d31f860c3797a186729bc6829b6a5610"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/terma_term-extraction-airy/valid_preprocess.txt": {"num_bytes": 175787, "checksum": "7bc98ac730da9beaba2c65ec2332a2e9c1953f060fa4cbf50a734274abbdfa60"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/terma_term-extraction-airy/test_preprocess_masked_label.txt": {"num_bytes": 119428, "checksum": "9933206180014ed264bfd8ade1468b2c4bb1a40698925e34d6ae8bec63a48b7c"}}, "download_size": 816822, "post_processing_size": null, "dataset_size": 1360240, "size_in_bytes": 2177062}, "keps": {"description": "This keyphrase extraction dataset (Mahfuzh et al., 2019) consists of text from Twitter discussing\nbanking products and services and is written in the Indonesian language. A phrase containing\nimportant information is considered a keyphrase. Text may contain one or more keyphrases since\nimportant phrases can be located at different positions. The dataset follows the IOB chunking format,\nwhich represents the position of the keyphrase.", "citation": "@inproceedings{mahfuzh2019improving,\n title={Improving Joint Layer RNN based Keyphrase Extraction by Using Syntactical Features},\n author={Miftahul Mahfuzh, Sidik Soleman, and Ayu Purwarianti},\n booktitle={Proceedings of the 2019 International Conference of Advanced Informatics: Concepts, Theory and Applications (ICAICTA)},\n pages={1--6},\n year={2019},\n organization={IEEE}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "seq_label": {"feature": {"num_classes": 3, "names": ["O", "B", "I"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "keps", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 173961, "num_examples": 800, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 42961, "num_examples": 200, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 66762, "num_examples": 247, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/keps_keyword-extraction-prosa/train_preprocess.txt": {"num_bytes": 82084, "checksum": "c863e6e4d4a16f1026aca198dd35ca018115e061c3352ee9268cd7b6b0f9f298"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/keps_keyword-extraction-prosa/valid_preprocess.txt": {"num_bytes": 20291, "checksum": "e3a3d38c9aaab0981b480a6d6ff6579e4453995b64e67744b7260a79f6fc38f3"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/keps_keyword-extraction-prosa/test_preprocess_masked_label.txt": {"num_bytes": 31667, "checksum": "9731cbc128169f1a549aaf2b516bc0657f8170dfcc8c124cbdf2d5031fcb5de6"}}, "download_size": 134042, "post_processing_size": null, "dataset_size": 283684, "size_in_bytes": 417726}, "nergrit": {"description": "This NER dataset is taken from the Grit-ID repository, and the labels are spans in IOB chunking representation.\nThe dataset consists of three kinds of named entity tags, PERSON (name of person), PLACE (name of location), and\nORGANIZATION (name of organization).", "citation": "@online{nergrit2019,\n title={NERGrit Corpus},\n author={NERGrit Developers},\n year={2019},\n url={https://github.com/grit-id/nergrit-corpus}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 7, "names": ["I-PERSON", "B-ORGANISATION", "I-ORGANISATION", "B-PLACE", "I-PLACE", "O", "B-PERSON"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "nergrit", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 960710, "num_examples": 1672, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 119567, "num_examples": 209, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 117274, "num_examples": 209, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/nergrit_ner-grit/train_preprocess.txt": {"num_bytes": 522268, "checksum": "4bbef1355fad21b405b5c511a7c80331a5ee71c91db9b82dc03efda5cb99f964"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/nergrit_ner-grit/valid_preprocess.txt": {"num_bytes": 64884, "checksum": "330ee7307f40f5e999110e02390243c07180b78c2e2a06f8a529ab46b0f4e907"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/nergrit_ner-grit/test_preprocess_masked_label.txt": {"num_bytes": 54113, "checksum": "08eed4592b26532fa08a0d04f929e3c4d72add5680e42eaf8f4a0ee9687b5289"}}, "download_size": 641265, "post_processing_size": null, "dataset_size": 1197551, "size_in_bytes": 1838816}, "nerp": {"description": "This NER dataset (Hoesen and Purwarianti, 2018) contains texts collected from several Indonesian news websites.\nThere are five labels available in this dataset, PER (name of person), LOC (name of location), IND (name of product or brand),\nEVT (name of the event), and FNB (name of food and beverage). The NERP dataset uses the IOB chunking format.", "citation": "@inproceedings{hoesen2018investigating,\n title={Investigating Bi-LSTM and CRF with POS Tag Embedding for Indonesian Named Entity Tagger},\n author={Devin Hoesen and Ayu Purwarianti},\n booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},\n pages={35--38},\n year={2018},\n organization={IEEE}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 11, "names": ["I-PPL", "B-EVT", "B-PLC", "I-IND", "B-IND", "B-FNB", "I-EVT", "B-PPL", "I-PLC", "O", "I-FNB"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "nerp", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2751348, "num_examples": 6720, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 343924, "num_examples": 840, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 350720, "num_examples": 840, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/nerp_ner-prosa/train_preprocess.txt": {"num_bytes": 1387891, "checksum": "0361c2b4a40298f00c027ad80b3c29a1f2a14c3d6fea91ec292820af25821a2d"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/nerp_ner-prosa/valid_preprocess.txt": {"num_bytes": 172835, "checksum": "5e08679148ada73a809a52fbe9695ac8d9b0acfe4e3e8f686fa6ab16048b4863"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/nerp_ner-prosa/test_preprocess_masked_label.txt": {"num_bytes": 165260, "checksum": "3242d38bd17a3d16e2d29f19cee7d59c56e5edb4c1e5dcd90e57ba045b06233c"}}, "download_size": 1725986, "post_processing_size": null, "dataset_size": 3445992, "size_in_bytes": 5171978}, "facqa": {"description": "The goal of the FacQA dataset is to find the answer to a question from a provided short passage from\na news article (Purwarianti et al., 2007). Each row in the FacQA dataset consists of a question,\na short passage, and a label phrase, which can be found inside the corresponding short passage.\nThere are six categories of questions: date, location, name, organization, person, and quantitative.", "citation": "@inproceedings{purwarianti2007machine,\n title={A Machine Learning Approach for Indonesian Question Answering System},\n author={Ayu Purwarianti, Masatoshi Tsuchiya, and Seiichi Nakagawa},\n booktitle={Proceedings of Artificial Intelligence and Applications },\n pages={573--578},\n year={2007}\n}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\n", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"question": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "passage": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "seq_label": {"feature": {"num_classes": 3, "names": ["O", "B", "I"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "indonlu", "config_name": "facqa", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2454368, "num_examples": 2495, "dataset_name": "indonlu"}, "validation": {"name": "validation", "num_bytes": 306249, "num_examples": 311, "dataset_name": "indonlu"}, "test": {"name": "test", "num_bytes": 306831, "num_examples": 311, "dataset_name": "indonlu"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/facqa_qa-factoid-itb/train_preprocess.csv": {"num_bytes": 2073762, "checksum": "cc738d6ec42cfb76eb36899616361c5d789ff8408afc94fbc2cdd102e7ce00cc"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/facqa_qa-factoid-itb/valid_preprocess.csv": {"num_bytes": 258917, "checksum": "ad0fa5056b141b4898f6de37f68416fe4e01c58e1e960a97e45b3b6b7cdfb5fd"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/facqa_qa-factoid-itb/test_preprocess_masked_label.csv": {"num_bytes": 259289, "checksum": "652e330c83eeaa2f0e965eb0fa75e8889cc7199a23f16843103e4e78946f7583"}}, "download_size": 2591968, "post_processing_size": null, "dataset_size": 3067448, "size_in_bytes": 5659416}}
indonlu.py ADDED
@@ -0,0 +1,639 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """The IndoNLU benchmark is a collection of resources for training, evaluating, and analyzing natural language understanding systems for Bahasa Indonesia"""
16
+
17
+
18
+ import ast
19
+ import csv
20
+ import textwrap
21
+
22
+ import datasets
23
+
24
+
25
+ _INDONLU_CITATION = """\
26
+ @inproceedings{wilie2020indonlu,
27
+ title = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},
28
+ authors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},
29
+ booktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},
30
+ year={2020}
31
+ }
32
+ """
33
+
34
+ _INDONLU_DESCRIPTION = """\
35
+ The IndoNLU benchmark is a collection of resources for training, evaluating, \
36
+ and analyzing natural language understanding systems for Bahasa Indonesia.
37
+ """
38
+
39
+ _INDONLU_HOMEPAGE = "https://www.indobenchmark.com/"
40
+
41
+ _INDONLU_LICENSE = "https://raw.githubusercontent.com/IndoNLP/indonlu/master/LICENSE"
42
+
43
+
44
+ class IndonluConfig(datasets.BuilderConfig):
45
+ """BuilderConfig for IndoNLU"""
46
+
47
+ def __init__(
48
+ self,
49
+ text_features,
50
+ label_column,
51
+ label_classes,
52
+ train_url,
53
+ valid_url,
54
+ test_url,
55
+ citation,
56
+ **kwargs,
57
+ ):
58
+ """BuilderConfig for IndoNLU.
59
+
60
+ Args:
61
+ text_features: `dict[string, string]`, map from the name of the feature
62
+ dict for each text field to the name of the column in the txt/csv/tsv file
63
+ label_column: `string`, name of the column in the txt/csv/tsv file corresponding
64
+ to the label
65
+ label_classes: `list[string]`, the list of classes if the label is categorical
66
+ train_url: `string`, url to train file from
67
+ valid_url: `string`, url to valid file from
68
+ test_url: `string`, url to test file from
69
+ citation: `string`, citation for the data set
70
+ **kwargs: keyword arguments forwarded to super.
71
+ """
72
+ super(IndonluConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
73
+ self.text_features = text_features
74
+ self.label_column = label_column
75
+ self.label_classes = label_classes
76
+ self.train_url = train_url
77
+ self.valid_url = valid_url
78
+ self.test_url = test_url
79
+ self.citation = citation
80
+
81
+
82
+ class Indonlu(datasets.GeneratorBasedBuilder):
83
+ """Indonesian Natural Language Understanding (IndoNLU) benchmark"""
84
+
85
+ BUILDER_CONFIGS = [
86
+ IndonluConfig(
87
+ name="emot",
88
+ description=textwrap.dedent(
89
+ """\
90
+ An emotion classification dataset collected from the social media
91
+ platform Twitter (Saputri et al., 2018). The dataset consists of
92
+ around 4000 Indonesian colloquial language tweets, covering five
93
+ different emotion labels: sadness, anger, love, fear, and happy."""
94
+ ),
95
+ text_features={"tweet": "tweet"},
96
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
97
+ label_classes=["sadness", "anger", "love", "fear", "happy"],
98
+ label_column="label",
99
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/emot_emotion-twitter/train_preprocess.csv",
100
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/emot_emotion-twitter/valid_preprocess.csv",
101
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/emot_emotion-twitter/test_preprocess.csv",
102
+ citation=textwrap.dedent(
103
+ """\
104
+ @inproceedings{saputri2018emotion,
105
+ title={Emotion Classification on Indonesian Twitter Dataset},
106
+ author={Mei Silviana Saputri, Rahmad Mahendra, and Mirna Adriani},
107
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing(IALP)},
108
+ pages={90--95},
109
+ year={2018},
110
+ organization={IEEE}
111
+ }"""
112
+ ),
113
+ ),
114
+ IndonluConfig(
115
+ name="smsa",
116
+ description=textwrap.dedent(
117
+ """\
118
+ This sentence-level sentiment analysis dataset (Purwarianti and Crisdayanti, 2019)
119
+ is a collection of comments and reviews in Indonesian obtained from multiple online
120
+ platforms. The text was crawled and then annotated by several Indonesian linguists
121
+ to construct this dataset. There are three possible sentiments on the SmSA
122
+ dataset: positive, negative, and neutral."""
123
+ ),
124
+ text_features={"text": "text"},
125
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
126
+ label_classes=["positive", "neutral", "negative"],
127
+ label_column="label",
128
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/smsa_doc-sentiment-prosa/train_preprocess.tsv",
129
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/smsa_doc-sentiment-prosa/valid_preprocess.tsv",
130
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/smsa_doc-sentiment-prosa/test_preprocess.tsv",
131
+ citation=textwrap.dedent(
132
+ """\
133
+ @inproceedings{purwarianti2019improving,
134
+ title={Improving Bi-LSTM Performance for Indonesian Sentiment Analysis Using Paragraph Vector},
135
+ author={Ayu Purwarianti and Ida Ayu Putu Ari Crisdayanti},
136
+ booktitle={Proceedings of the 2019 International Conference of Advanced Informatics: Concepts, Theory and Applications (ICAICTA)},
137
+ pages={1--5},
138
+ year={2019},
139
+ organization={IEEE}
140
+ }"""
141
+ ),
142
+ ),
143
+ IndonluConfig(
144
+ name="casa",
145
+ description=textwrap.dedent(
146
+ """\
147
+ An aspect-based sentiment analysis dataset consisting of around a thousand car reviews collected
148
+ from multiple Indonesian online automobile platforms (Ilmania et al., 2018). The dataset covers
149
+ six aspects of car quality. We define the task to be a multi-label classification task, where
150
+ each label represents a sentiment for a single aspect with three possible values: positive,
151
+ negative, and neutral."""
152
+ ),
153
+ text_features={"sentence": "sentence"},
154
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
155
+ label_classes=["negative", "neutral", "positive"],
156
+ label_column=["fuel", "machine", "others", "part", "price", "service"],
157
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/casa_absa-prosa/train_preprocess.csv",
158
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/casa_absa-prosa/valid_preprocess.csv",
159
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/casa_absa-prosa/test_preprocess.csv",
160
+ citation=textwrap.dedent(
161
+ """\
162
+ @inproceedings{ilmania2018aspect,
163
+ title={Aspect Detection and Sentiment Classification Using Deep Neural Network for Indonesian Aspect-based Sentiment Analysis},
164
+ author={Arfinda Ilmania, Abdurrahman, Samuel Cahyawijaya, Ayu Purwarianti},
165
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing(IALP)},
166
+ pages={62--67},
167
+ year={2018},
168
+ organization={IEEE}
169
+ }"""
170
+ ),
171
+ ),
172
+ IndonluConfig(
173
+ name="hoasa",
174
+ description=textwrap.dedent(
175
+ """\
176
+ An aspect-based sentiment analysis dataset consisting of hotel reviews collected from the hotel
177
+ aggregator platform, AiryRooms (Azhar et al., 2019). The dataset covers ten different aspects of
178
+ hotel quality. Each review is labeled with a single sentiment label for each aspect. There are
179
+ four possible sentiment classes for each sentiment label: positive, negative, neutral, and
180
+ positive-negative. The positivenegative label is given to a review that contains multiple sentiments
181
+ of the same aspect but for different objects (e.g., cleanliness of bed and toilet)."""
182
+ ),
183
+ text_features={"sentence": "sentence"},
184
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
185
+ label_classes=["neg", "neut", "pos", "neg_pos"],
186
+ label_column=[
187
+ "ac",
188
+ "air_panas",
189
+ "bau",
190
+ "general",
191
+ "kebersihan",
192
+ "linen",
193
+ "service",
194
+ "sunrise_meal",
195
+ "tv",
196
+ "wifi",
197
+ ],
198
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/hoasa_absa-airy/train_preprocess.csv",
199
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/hoasa_absa-airy/valid_preprocess.csv",
200
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/hoasa_absa-airy/test_preprocess.csv",
201
+ citation=textwrap.dedent(
202
+ """\
203
+ @inproceedings{azhar2019multi,
204
+ title={Multi-label Aspect Categorization with Convolutional Neural Networks and Extreme Gradient Boosting},
205
+ author={A. N. Azhar, M. L. Khodra, and A. P. Sutiono}
206
+ booktitle={Proceedings of the 2019 International Conference on Electrical Engineering and Informatics (ICEEI)},
207
+ pages={35--40},
208
+ year={2019}
209
+ }"""
210
+ ),
211
+ ),
212
+ IndonluConfig(
213
+ name="wrete",
214
+ description=textwrap.dedent(
215
+ """\
216
+ The Wiki Revision Edits Textual Entailment dataset (Setya and Mahendra, 2018) consists of 450 sentence pairs
217
+ constructed from Wikipedia revision history. The dataset contains pairs of sentences and binary semantic
218
+ relations between the pairs. The data are labeled as entailed when the meaning of the second sentence can be
219
+ derived from the first one, and not entailed otherwise."""
220
+ ),
221
+ text_features={
222
+ "premise": "premise",
223
+ "hypothesis": "hypothesis",
224
+ "category": "category",
225
+ },
226
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
227
+ label_classes=["NotEntail", "Entail_or_Paraphrase"],
228
+ label_column="label",
229
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/wrete_entailment-ui/train_preprocess.csv",
230
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/wrete_entailment-ui/valid_preprocess.csv",
231
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/wrete_entailment-ui/test_preprocess.csv",
232
+ citation=textwrap.dedent(
233
+ """\
234
+ @inproceedings{setya2018semi,
235
+ title={Semi-supervised Textual Entailment on Indonesian Wikipedia Data},
236
+ author={Ken Nabila Setya and Rahmad Mahendra},
237
+ booktitle={Proceedings of the 2018 International Conference on Computational Linguistics and Intelligent Text Processing (CICLing)},
238
+ year={2018}
239
+ }"""
240
+ ),
241
+ ),
242
+ IndonluConfig(
243
+ name="posp",
244
+ description=textwrap.dedent(
245
+ """\
246
+ This Indonesian part-of-speech tagging (POS) dataset (Hoesen and Purwarianti, 2018) is collected from Indonesian
247
+ news websites. The dataset consists of around 8000 sentences with 26 POS tags. The POS tag labels follow the
248
+ Indonesian Association of Computational Linguistics (INACL) POS Tagging Convention."""
249
+ ),
250
+ text_features={"tokens": "tokens"},
251
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
252
+ label_classes=[
253
+ "B-PPO",
254
+ "B-KUA",
255
+ "B-ADV",
256
+ "B-PRN",
257
+ "B-VBI",
258
+ "B-PAR",
259
+ "B-VBP",
260
+ "B-NNP",
261
+ "B-UNS",
262
+ "B-VBT",
263
+ "B-VBL",
264
+ "B-NNO",
265
+ "B-ADJ",
266
+ "B-PRR",
267
+ "B-PRK",
268
+ "B-CCN",
269
+ "B-$$$",
270
+ "B-ADK",
271
+ "B-ART",
272
+ "B-CSN",
273
+ "B-NUM",
274
+ "B-SYM",
275
+ "B-INT",
276
+ "B-NEG",
277
+ "B-PRI",
278
+ "B-VBE",
279
+ ],
280
+ label_column="pos_tags",
281
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/posp_pos-prosa/train_preprocess.txt",
282
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/posp_pos-prosa/valid_preprocess.txt",
283
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/posp_pos-prosa/test_preprocess.txt",
284
+ citation=textwrap.dedent(
285
+ """\
286
+ @inproceedings{hoesen2018investigating,
287
+ title={Investigating Bi-LSTM and CRF with POS Tag Embedding for Indonesian Named Entity Tagger},
288
+ author={Devin Hoesen and Ayu Purwarianti},
289
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},
290
+ pages={35--38},
291
+ year={2018},
292
+ organization={IEEE}
293
+ }"""
294
+ ),
295
+ ),
296
+ IndonluConfig(
297
+ name="bapos",
298
+ description=textwrap.dedent(
299
+ """\
300
+ This POS tagging dataset (Dinakaramani et al., 2014) contains about 1000 sentences, collected from the PAN Localization
301
+ Project. In this dataset, each word is tagged by one of 23 POS tag classes. Data splitting used in this benchmark follows
302
+ the experimental setting used by Kurniawan and Aji (2018)"""
303
+ ),
304
+ text_features={"tokens": "tokens"},
305
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
306
+ label_classes=[
307
+ "B-PR",
308
+ "B-CD",
309
+ "I-PR",
310
+ "B-SYM",
311
+ "B-JJ",
312
+ "B-DT",
313
+ "I-UH",
314
+ "I-NND",
315
+ "B-SC",
316
+ "I-WH",
317
+ "I-IN",
318
+ "I-NNP",
319
+ "I-VB",
320
+ "B-IN",
321
+ "B-NND",
322
+ "I-CD",
323
+ "I-JJ",
324
+ "I-X",
325
+ "B-OD",
326
+ "B-RP",
327
+ "B-RB",
328
+ "B-NNP",
329
+ "I-RB",
330
+ "I-Z",
331
+ "B-CC",
332
+ "B-NEG",
333
+ "B-VB",
334
+ "B-NN",
335
+ "B-MD",
336
+ "B-UH",
337
+ "I-NN",
338
+ "B-PRP",
339
+ "I-SC",
340
+ "B-Z",
341
+ "I-PRP",
342
+ "I-OD",
343
+ "I-SYM",
344
+ "B-WH",
345
+ "B-FW",
346
+ "I-CC",
347
+ "B-X",
348
+ ],
349
+ label_column="pos_tags",
350
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/bapos_pos-idn/train_preprocess.txt",
351
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/bapos_pos-idn/valid_preprocess.txt",
352
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/bapos_pos-idn/test_preprocess.txt",
353
+ citation=textwrap.dedent(
354
+ """\
355
+ @inproceedings{dinakaramani2014designing,
356
+ title={Designing an Indonesian Part of Speech Tagset and Manually Tagged Indonesian Corpus},
357
+ author={Arawinda Dinakaramani, Fam Rashel, Andry Luthfi, and Ruli Manurung},
358
+ booktitle={Proceedings of the 2014 International Conference on Asian Language Processing (IALP)},
359
+ pages={66--69},
360
+ year={2014},
361
+ organization={IEEE}
362
+ }
363
+ @inproceedings{kurniawan2019toward,
364
+ title={Toward a Standardized and More Accurate Indonesian Part-of-Speech Tagging},
365
+ author={Kemal Kurniawan and Alham Fikri Aji},
366
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},
367
+ pages={303--307},
368
+ year={2018},
369
+ organization={IEEE}
370
+ }"""
371
+ ),
372
+ ),
373
+ IndonluConfig(
374
+ name="terma",
375
+ description=textwrap.dedent(
376
+ """\
377
+ This span-extraction dataset is collected from the hotel aggregator platform, AiryRooms (Septiandri and Sutiono, 2019;
378
+ Fernando et al., 2019). The dataset consists of thousands of hotel reviews, which each contain a span label for aspect
379
+ and sentiment words representing the opinion of the reviewer on the corresponding aspect. The labels use
380
+ Inside-Outside-Beginning (IOB) tagging representation with two kinds of tags, aspect and sentiment."""
381
+ ),
382
+ text_features={"tokens": "tokens"},
383
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
384
+ label_classes=["I-SENTIMENT", "O", "I-ASPECT", "B-SENTIMENT", "B-ASPECT"],
385
+ label_column="seq_label",
386
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/terma_term-extraction-airy/train_preprocess.txt",
387
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/terma_term-extraction-airy/valid_preprocess.txt",
388
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/terma_term-extraction-airy/test_preprocess.txt",
389
+ citation=textwrap.dedent(
390
+ """\
391
+ @article{winatmoko2019aspect,
392
+ title={Aspect and Opinion Term Extraction for Hotel Reviews Using Transfer Learning and Auxiliary Labels},
393
+ author={Yosef Ardhito Winatmoko, Ali Akbar Septiandri, Arie Pratama Sutiono},
394
+ journal={arXiv preprint arXiv:1909.11879},
395
+ year={2019}
396
+ }
397
+ @article{fernando2019aspect,
398
+ title={Aspect and Opinion Terms Extraction Using Double Embeddings and Attention Mechanism for Indonesian Hotel Reviews},
399
+ author={Jordhy Fernando, Masayu Leylia Khodra, Ali Akbar Septiandri},
400
+ journal={arXiv preprint arXiv:1908.04899},
401
+ year={2019}
402
+ }"""
403
+ ),
404
+ ),
405
+ IndonluConfig(
406
+ name="keps",
407
+ description=textwrap.dedent(
408
+ """\
409
+ This keyphrase extraction dataset (Mahfuzh et al., 2019) consists of text from Twitter discussing
410
+ banking products and services and is written in the Indonesian language. A phrase containing
411
+ important information is considered a keyphrase. Text may contain one or more keyphrases since
412
+ important phrases can be located at different positions. The dataset follows the IOB chunking format,
413
+ which represents the position of the keyphrase."""
414
+ ),
415
+ text_features={"tokens": "tokens"},
416
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
417
+ label_classes=["O", "B", "I"],
418
+ label_column="seq_label",
419
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/keps_keyword-extraction-prosa/train_preprocess.txt",
420
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/keps_keyword-extraction-prosa/valid_preprocess.txt",
421
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/keps_keyword-extraction-prosa/test_preprocess.txt",
422
+ citation=textwrap.dedent(
423
+ """\
424
+ @inproceedings{mahfuzh2019improving,
425
+ title={Improving Joint Layer RNN based Keyphrase Extraction by Using Syntactical Features},
426
+ author={Miftahul Mahfuzh, Sidik Soleman, and Ayu Purwarianti},
427
+ booktitle={Proceedings of the 2019 International Conference of Advanced Informatics: Concepts, Theory and Applications (ICAICTA)},
428
+ pages={1--6},
429
+ year={2019},
430
+ organization={IEEE}
431
+ }"""
432
+ ),
433
+ ),
434
+ IndonluConfig(
435
+ name="nergrit",
436
+ description=textwrap.dedent(
437
+ """\
438
+ This NER dataset is taken from the Grit-ID repository, and the labels are spans in IOB chunking representation.
439
+ The dataset consists of three kinds of named entity tags, PERSON (name of person), PLACE (name of location), and
440
+ ORGANIZATION (name of organization)."""
441
+ ),
442
+ text_features={"tokens": "tokens"},
443
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
444
+ label_classes=["I-PERSON", "B-ORGANISATION", "I-ORGANISATION", "B-PLACE", "I-PLACE", "O", "B-PERSON"],
445
+ label_column="ner_tags",
446
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/nergrit_ner-grit/train_preprocess.txt",
447
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/nergrit_ner-grit/valid_preprocess.txt",
448
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/nergrit_ner-grit/test_preprocess.txt",
449
+ citation=textwrap.dedent(
450
+ """\
451
+ @online{nergrit2019,
452
+ title={NERGrit Corpus},
453
+ author={NERGrit Developers},
454
+ year={2019},
455
+ url={https://github.com/grit-id/nergrit-corpus}
456
+ }"""
457
+ ),
458
+ ),
459
+ IndonluConfig(
460
+ name="nerp",
461
+ description=textwrap.dedent(
462
+ """\
463
+ This NER dataset (Hoesen and Purwarianti, 2018) contains texts collected from several Indonesian news websites.
464
+ There are five labels available in this dataset, PER (name of person), LOC (name of location), IND (name of product or brand),
465
+ EVT (name of the event), and FNB (name of food and beverage). The NERP dataset uses the IOB chunking format."""
466
+ ),
467
+ text_features={"tokens": "tokens"},
468
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
469
+ label_classes=[
470
+ "I-PPL",
471
+ "B-EVT",
472
+ "B-PLC",
473
+ "I-IND",
474
+ "B-IND",
475
+ "B-FNB",
476
+ "I-EVT",
477
+ "B-PPL",
478
+ "I-PLC",
479
+ "O",
480
+ "I-FNB",
481
+ ],
482
+ label_column="ner_tags",
483
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/nerp_ner-prosa/train_preprocess.txt",
484
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/nerp_ner-prosa/valid_preprocess.txt",
485
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/nerp_ner-prosa/test_preprocess.txt",
486
+ citation=textwrap.dedent(
487
+ """\
488
+ @inproceedings{hoesen2018investigating,
489
+ title={Investigating Bi-LSTM and CRF with POS Tag Embedding for Indonesian Named Entity Tagger},
490
+ author={Devin Hoesen and Ayu Purwarianti},
491
+ booktitle={Proceedings of the 2018 International Conference on Asian Language Processing (IALP)},
492
+ pages={35--38},
493
+ year={2018},
494
+ organization={IEEE}
495
+ }"""
496
+ ),
497
+ ),
498
+ IndonluConfig(
499
+ name="facqa",
500
+ description=textwrap.dedent(
501
+ """\
502
+ The goal of the FacQA dataset is to find the answer to a question from a provided short passage from
503
+ a news article (Purwarianti et al., 2007). Each row in the FacQA dataset consists of a question,
504
+ a short passage, and a label phrase, which can be found inside the corresponding short passage.
505
+ There are six categories of questions: date, location, name, organization, person, and quantitative."""
506
+ ),
507
+ text_features={"question": "question", "passage": "passage"},
508
+ # label classes sorted refer to https://github.com/IndoNLP/indonlu/blob/master/utils/data_utils.py
509
+ label_classes=["O", "B", "I"],
510
+ label_column="seq_label",
511
+ train_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/facqa_qa-factoid-itb/train_preprocess.csv",
512
+ valid_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/facqa_qa-factoid-itb/valid_preprocess.csv",
513
+ test_url="https://raw.githubusercontent.com/IndoNLP/indonlu/master/dataset/facqa_qa-factoid-itb/test_preprocess.csv",
514
+ citation=textwrap.dedent(
515
+ """\
516
+ @inproceedings{purwarianti2007machine,
517
+ title={A Machine Learning Approach for Indonesian Question Answering System},
518
+ author={Ayu Purwarianti, Masatoshi Tsuchiya, and Seiichi Nakagawa},
519
+ booktitle={Proceedings of Artificial Intelligence and Applications },
520
+ pages={573--578},
521
+ year={2007}
522
+ }"""
523
+ ),
524
+ ),
525
+ ]
526
+
527
+ def _info(self):
528
+ sentence_features = ["terma", "keps", "facqa"]
529
+ ner_ = ["nergrit", "nerp"]
530
+ pos_ = ["posp", "bapos"]
531
+
532
+ if self.config.name in (sentence_features + ner_ + pos_):
533
+ features = {
534
+ text_feature: datasets.Sequence(datasets.Value("string"))
535
+ for text_feature in self.config.text_features.keys()
536
+ }
537
+ else:
538
+ features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features}
539
+
540
+ if self.config.label_classes:
541
+ if self.config.name in sentence_features:
542
+ features["seq_label"] = datasets.Sequence(
543
+ datasets.features.ClassLabel(names=self.config.label_classes)
544
+ )
545
+ elif self.config.name in ner_:
546
+ features["ner_tags"] = datasets.Sequence(datasets.features.ClassLabel(names=self.config.label_classes))
547
+ elif self.config.name in pos_:
548
+ features["pos_tags"] = datasets.Sequence(datasets.features.ClassLabel(names=self.config.label_classes))
549
+ elif self.config.name == "casa" or self.config.name == "hoasa":
550
+ for label in self.config.label_column:
551
+ features[label] = datasets.features.ClassLabel(names=self.config.label_classes)
552
+ else:
553
+ features["label"] = datasets.features.ClassLabel(names=self.config.label_classes)
554
+
555
+ return datasets.DatasetInfo(
556
+ description=self.config.description,
557
+ features=datasets.Features(features),
558
+ homepage=_INDONLU_HOMEPAGE,
559
+ citation=self.config.citation + "\n" + _INDONLU_CITATION,
560
+ )
561
+
562
+ def _split_generators(self, dl_manager):
563
+ """Returns SplitGenerators."""
564
+ train_path = dl_manager.download_and_extract(self.config.train_url)
565
+ valid_path = dl_manager.download_and_extract(self.config.valid_url)
566
+ test_path = dl_manager.download_and_extract(self.config.test_url)
567
+ return [
568
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
569
+ datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": valid_path}),
570
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
571
+ ]
572
+
573
+ def _generate_examples(self, filepath):
574
+ """Yields examples."""
575
+ csv_file = ["emot", "wrete", "facqa", "casa", "hoasa"]
576
+ tsv_file = ["smsa"]
577
+ txt_file = ["terma", "keps"]
578
+ txt_file_pos = ["posp", "bapos"]
579
+ txt_file_ner = ["nergrit", "nerp"]
580
+
581
+ with open(filepath, encoding="utf-8") as f:
582
+
583
+ if self.config.name in csv_file:
584
+ reader = csv.reader(f, delimiter=",", quotechar='"', quoting=csv.QUOTE_ALL)
585
+ next(reader) # skip first row which is header
586
+
587
+ for id_, row in enumerate(reader):
588
+ if self.config.name == "emot":
589
+ label, tweet = row
590
+ yield id_, {"tweet": tweet, "label": label}
591
+ elif self.config.name == "wrete":
592
+ premise, hypothesis, category, label = row
593
+ yield id_, {"premise": premise, "hypothesis": hypothesis, "category": category, "label": label}
594
+ elif self.config.name == "facqa":
595
+ question, passage, seq_label = row
596
+ yield id_, {
597
+ "question": ast.literal_eval(question),
598
+ "passage": ast.literal_eval(passage),
599
+ "seq_label": ast.literal_eval(seq_label),
600
+ }
601
+ elif self.config.name == "casa" or self.config.name == "hoasa":
602
+ sentence, *labels = row
603
+ sentence = {"sentence": sentence}
604
+ label = {l: labels[idx] for idx, l in enumerate(self.config.label_column)}
605
+ yield id_, {**sentence, **label}
606
+ elif self.config.name in tsv_file:
607
+ reader = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
608
+
609
+ for id_, row in enumerate(reader):
610
+ if self.config.name == "smsa":
611
+ text, label = row
612
+ yield id_, {"text": text, "label": label}
613
+ elif self.config.name in (txt_file + txt_file_pos + txt_file_ner):
614
+ id_ = 0
615
+ tokens = []
616
+ seq_label = []
617
+ for line in f:
618
+ if len(line.strip()) > 0:
619
+ token, label = line[:-1].split("\t")
620
+ tokens.append(token)
621
+ seq_label.append(label)
622
+ else:
623
+ if self.config.name in txt_file:
624
+ yield id_, {"tokens": tokens, "seq_label": seq_label}
625
+ elif self.config.name in txt_file_pos:
626
+ yield id_, {"tokens": tokens, "pos_tags": seq_label}
627
+ elif self.config.name in txt_file_ner:
628
+ yield id_, {"tokens": tokens, "ner_tags": seq_label}
629
+ id_ += 1
630
+ tokens = []
631
+ seq_label = []
632
+ # add last example
633
+ if tokens:
634
+ if self.config.name in txt_file:
635
+ yield id_, {"tokens": tokens, "seq_label": seq_label}
636
+ elif self.config.name in txt_file_pos:
637
+ yield id_, {"tokens": tokens, "pos_tags": seq_label}
638
+ elif self.config.name in txt_file_ner:
639
+ yield id_, {"tokens": tokens, "ner_tags": seq_label}