lhoestq HF staff commited on
Commit
c07f9f1
1 Parent(s): 5c0a87b

Quote class label ids in YAML

Browse files

We fixed a bug recently where `datasets` wouldn't use quote for class label ids. Now it does, in order to let the Hugging face Hub parse the YAML correctly.

Files changed (1) hide show
  1. README.md +164 -164
README.md CHANGED
@@ -54,11 +54,11 @@ dataset_info:
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
@@ -79,9 +79,9 @@ dataset_info:
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
@@ -102,44 +102,44 @@ dataset_info:
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
@@ -160,82 +160,82 @@ dataset_info:
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
@@ -260,8 +260,8 @@ dataset_info:
260
  dtype:
261
  class_label:
262
  names:
263
- 0: NotEntail
264
- 1: Entail_or_Paraphrase
265
  splits:
266
  - name: train
267
  num_bytes: 99999
@@ -282,32 +282,32 @@ dataset_info:
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
@@ -328,47 +328,47 @@ dataset_info:
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
@@ -389,11 +389,11 @@ dataset_info:
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
@@ -414,9 +414,9 @@ dataset_info:
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
@@ -437,13 +437,13 @@ dataset_info:
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
@@ -464,17 +464,17 @@ dataset_info:
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
@@ -497,9 +497,9 @@ dataset_info:
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
 
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
 
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
 
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
 
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
 
260
  dtype:
261
  class_label:
262
  names:
263
+ '0': NotEntail
264
+ '1': Entail_or_Paraphrase
265
  splits:
266
  - name: train
267
  num_bytes: 99999
 
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
 
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
 
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
 
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
 
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
 
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
 
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