Datasets:

Modalities:
Text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
StefanH commited on
Commit
a5dbb5f
·
1 Parent(s): a2039cd

Update: stefutil dependency removal; YAML metadata

Browse files
Files changed (2) hide show
  1. README.md +1211 -4
  2. utcd.py +5 -6
README.md CHANGED
@@ -11,6 +11,1215 @@ annotations_creators:
11
  multilinguality:
12
  - monolingual
13
  pretty_name: UTCD
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
  # Universal Text Classification Dataset (UTCD)
16
 
@@ -20,7 +1229,8 @@ from datasets import load_dataset
20
  dataset = load_dataset('claritylab/utcd', name='in-domain')
21
  ```
22
 
23
- ## Description
 
24
  UTCD is a curated compilation of 18 datasets revised for Zero-shot Text Classification spanning 3 aspect categories of Sentiment, Intent/Dialogue, and Topic classification. UTCD focuses on the task of zero-shot text classification where the candidate labels are descriptive of the text being classified. TUTCD consists of ~ 6M/800K train/test examples.
25
 
26
  UTCD was introduced in the Findings of ACL'23 Paper **Label Agnostic Pre-training for Zero-shot Text Classification** by ***Christopher Clarke, Yuzhao Heng, Yiping Kang, Krisztian Flautner, Lingjia Tang and Jason Mars***. [Project Homepage](https://github.com/ChrisIsKing/zero-shot-text-classification/tree/master).
@@ -147,6 +1357,3 @@ Below are statistics on the configuration splits.
147
  | Train | 119,167 |
148
  | Validation | 13,263 |
149
  | Test | 625,911 |
150
-
151
-
152
-
 
11
  multilinguality:
12
  - monolingual
13
  pretty_name: UTCD
14
+ dataset_info:
15
+ - config_name: in-domain
16
+ features:
17
+ - name: text
18
+ dtype: string
19
+ - name: labels
20
+ sequence:
21
+ class_label:
22
+ names:
23
+ '0': Add Alarm
24
+ '1': Album
25
+ '2': Animal
26
+ '3': Artist
27
+ '4': Athlete
28
+ '5': Book Appointment
29
+ '6': Book House
30
+ '7': Building
31
+ '8': Business
32
+ '9': Business & Finance
33
+ '10': Buy Bus Ticket
34
+ '11': Buy Event Tickets
35
+ '12': Buy Movie Tickets
36
+ '13': Check Balance
37
+ '14': Company
38
+ '15': Computers & Internet
39
+ '16': Education & Reference
40
+ '17': Educational Institution
41
+ '18': Entertainment & Music
42
+ '19': Family & Relationships
43
+ '20': Film
44
+ '21': Find Apartment
45
+ '22': Find Attractions
46
+ '23': Find Bus
47
+ '24': Find Events
48
+ '25': Find Home By Area
49
+ '26': Find Movies
50
+ '27': Find Provider
51
+ '28': Find Restaurants
52
+ '29': Find Trains
53
+ '30': Get Alarms
54
+ '31': Get Available Time
55
+ '32': Get Cars Available
56
+ '33': Get Event Dates
57
+ '34': Get Events
58
+ '35': Get Ride
59
+ '36': Get Times For Movie
60
+ '37': Get Weather
61
+ '38': Health
62
+ '39': Lookup Music
63
+ '40': Lookup Song
64
+ '41': Make Payment
65
+ '42': Mean Of Transportation
66
+ '43': Natural Place
67
+ '44': Office Holder
68
+ '45': Plant
69
+ '46': Play Media
70
+ '47': Play Movie
71
+ '48': Play Song
72
+ '49': Politics & Government
73
+ '50': Request Payment
74
+ '51': Reserve Car
75
+ '52': Reserve Hotel
76
+ '53': Reserve One way Flight
77
+ '54': Reserve Restaurant
78
+ '55': Reserve Round trip Flights
79
+ '56': Schedule Visit
80
+ '57': Science & Mathematics
81
+ '58': Science & Technology
82
+ '59': Search Hotel
83
+ '60': Search House
84
+ '61': Search One way Flight
85
+ '62': Search Round trip Flights
86
+ '63': Society & Culture
87
+ '64': Sports
88
+ '65': Transfer Money
89
+ '66': Village
90
+ '67': World News
91
+ '68': Written Work
92
+ '69': accept reservations
93
+ '70': account blocked
94
+ '71': add contact
95
+ '72': admiration
96
+ '73': alarm
97
+ '74': alarm query
98
+ '75': alarm remove
99
+ '76': alarm set
100
+ '77': amusement
101
+ '78': anger
102
+ '79': annoyance
103
+ '80': application status
104
+ '81': approval
105
+ '82': apr
106
+ '83': are you a bot
107
+ '84': audio volume down
108
+ '85': audio volume mute
109
+ '86': audio volume other
110
+ '87': audio volume up
111
+ '88': balance
112
+ '89': bill balance
113
+ '90': bill due
114
+ '91': book flight
115
+ '92': book hotel
116
+ '93': calculator
117
+ '94': calendar
118
+ '95': calendar query
119
+ '96': calendar remove
120
+ '97': calendar set
121
+ '98': calendar update
122
+ '99': calories
123
+ '100': cancel
124
+ '101': cancel reservation
125
+ '102': car rental
126
+ '103': card declined
127
+ '104': caring
128
+ '105': carry on
129
+ '106': change accent
130
+ '107': change ai name
131
+ '108': change language
132
+ '109': change speed
133
+ '110': change user name
134
+ '111': change volume
135
+ '112': cleaning
136
+ '113': coffee
137
+ '114': confirm reservation
138
+ '115': confusion
139
+ '116': convert
140
+ '117': cook time
141
+ '118': cooking query
142
+ '119': cooking recipe
143
+ '120': create or add
144
+ '121': credit limit
145
+ '122': credit limit change
146
+ '123': credit score
147
+ '124': curiosity
148
+ '125': currency
149
+ '126': current location
150
+ '127': damaged card
151
+ '128': date
152
+ '129': date time convert
153
+ '130': date time query
154
+ '131': definition
155
+ '132': desire
156
+ '133': direct deposit
157
+ '134': directions
158
+ '135': disappointment
159
+ '136': disapproval
160
+ '137': disgust
161
+ '138': distance
162
+ '139': do you have pets
163
+ '140': email add contact
164
+ '141': email query
165
+ '142': email query contact
166
+ '143': email send email
167
+ '144': embarrassment
168
+ '145': events
169
+ '146': exchange rate
170
+ '147': excitement
171
+ '148': expiration date
172
+ '149': factoid
173
+ '150': fear
174
+ '151': find phone
175
+ '152': flight status
176
+ '153': flip coin
177
+ '154': food last
178
+ '155': freeze account
179
+ '156': fun fact
180
+ '157': game
181
+ '158': gas
182
+ '159': gas type
183
+ '160': general greet
184
+ '161': general joke
185
+ '162': general quirky
186
+ '163': goodbye
187
+ '164': gratitude
188
+ '165': greet
189
+ '166': greeting
190
+ '167': grief
191
+ '168': how busy
192
+ '169': how old are you
193
+ '170': hue light dim
194
+ '171': hue light off
195
+ '172': hue light up
196
+ '173': improve credit score
197
+ '174': income
198
+ '175': ingredient substitution
199
+ '176': ingredients list
200
+ '177': insurance
201
+ '178': insurance change
202
+ '179': interest rate
203
+ '180': international fees
204
+ '181': international visa
205
+ '182': iot cleaning
206
+ '183': iot coffee
207
+ '184': iot hue light change
208
+ '185': iot hue light dim
209
+ '186': iot hue light off
210
+ '187': iot hue light on
211
+ '188': iot hue light up
212
+ '189': iot wemo on
213
+ '190': iot wemo plug off
214
+ '191': joke
215
+ '192': joy
216
+ '193': jump start
217
+ '194': last maintenance
218
+ '195': lists create or add
219
+ '196': lists query
220
+ '197': lists remove
221
+ '198': lost luggage
222
+ '199': love
223
+ '200': make call
224
+ '201': maybe
225
+ '202': meal suggestion
226
+ '203': meaning of life
227
+ '204': measurement conversion
228
+ '205': meeting schedule
229
+ '206': min payment
230
+ '207': mpg
231
+ '208': music
232
+ '209': music dislike ness
233
+ '210': music likeness
234
+ '211': music query
235
+ '212': music settings
236
+ '213': negative
237
+ '214': nervousness
238
+ '215': neutral
239
+ '216': new card
240
+ '217': news query
241
+ '218': next holiday
242
+ '219': next song
243
+ '220': 'no'
244
+ '221': nutrition info
245
+ '222': oil change how
246
+ '223': oil change when
247
+ '224': optimism
248
+ '225': order
249
+ '226': order checks
250
+ '227': order status
251
+ '228': paid time off request status
252
+ '229': paid time off used
253
+ '230': pay bill
254
+ '231': payday
255
+ '232': pin change
256
+ '233': play audiobook
257
+ '234': play game
258
+ '235': play music
259
+ '236': play podcasts
260
+ '237': play radio
261
+ '238': plug type
262
+ '239': podcasts
263
+ '240': positive
264
+ '241': post
265
+ '242': pride
266
+ '243': pto balance
267
+ '244': pto request
268
+ '245': qa currency
269
+ '246': qa definition
270
+ '247': qa factoid
271
+ '248': qa maths
272
+ '249': qa stock
273
+ '250': query
274
+ '251': query contact
275
+ '252': quirky
276
+ '253': radio
277
+ '254': realization
278
+ '255': recipe
279
+ '256': recommendation events
280
+ '257': recommendation locations
281
+ '258': recommendation movies
282
+ '259': redeem rewards
283
+ '260': relief
284
+ '261': reminder
285
+ '262': reminder update
286
+ '263': remorse
287
+ '264': remove
288
+ '265': repeat
289
+ '266': replacement card duration
290
+ '267': report fraud
291
+ '268': report lost card
292
+ '269': reset settings
293
+ '270': restaurant reservation
294
+ '271': restaurant reviews
295
+ '272': restaurant suggestion
296
+ '273': rewards balance
297
+ '274': roll dice
298
+ '275': rollover 401k
299
+ '276': routing
300
+ '277': sadness
301
+ '278': schedule maintenance
302
+ '279': schedule meeting
303
+ '280': send email
304
+ '281': set
305
+ '282': settings
306
+ '283': share location
307
+ '284': shopping list
308
+ '285': shopping list update
309
+ '286': smart home
310
+ '287': social post
311
+ '288': social query
312
+ '289': spelling
313
+ '290': spending history
314
+ '291': surprise
315
+ '292': sync device
316
+ '293': take away order
317
+ '294': take away query
318
+ '295': taxes
319
+ '296': tell joke
320
+ '297': text
321
+ '298': thank you
322
+ '299': ticket
323
+ '300': time
324
+ '301': timer
325
+ '302': timezone
326
+ '303': tire change
327
+ '304': tire pressure
328
+ '305': todo list
329
+ '306': todo list update
330
+ '307': traffic
331
+ '308': transactions
332
+ '309': transfer
333
+ '310': translate
334
+ '311': transport query
335
+ '312': transport taxi
336
+ '313': transport ticket
337
+ '314': transport traffic
338
+ '315': travel alert
339
+ '316': travel notification
340
+ '317': travel suggestion
341
+ '318': uber
342
+ '319': update playlist
343
+ '320': user name
344
+ '321': vaccines
345
+ '322': volume other
346
+ '323': w2 wage and tax statement
347
+ '324': weather
348
+ '325': weather query
349
+ '326': wemo off
350
+ '327': wemo plug on
351
+ '328': what are your hobbies
352
+ '329': what can i ask you
353
+ '330': what is your name
354
+ '331': what song
355
+ '332': where are you from
356
+ '333': whisper mode
357
+ '334': who do you work for
358
+ '335': who made you
359
+ '336': 'yes'
360
+ - name: dataset_name
361
+ dtype:
362
+ class_label:
363
+ names:
364
+ '0': go_emotion
365
+ '1': sentiment_tweets_2020
366
+ '2': emotion
367
+ '3': sgd
368
+ '4': clinc_150
369
+ '5': slurp
370
+ '6': ag_news
371
+ '7': dbpedia
372
+ '8': yahoo
373
+ splits:
374
+ - name: train
375
+ num_bytes: 347382307
376
+ num_examples: 2192703
377
+ - name: test
378
+ num_bytes: 36063588
379
+ num_examples: 168365
380
+ download_size: 1744258165
381
+ dataset_size: 383445895
382
+ - config_name: aspect-normalized-in-domain
383
+ features:
384
+ - name: text
385
+ dtype: string
386
+ - name: labels
387
+ sequence:
388
+ class_label:
389
+ names:
390
+ '0': Add Alarm
391
+ '1': Album
392
+ '2': Animal
393
+ '3': Artist
394
+ '4': Athlete
395
+ '5': Book Appointment
396
+ '6': Book House
397
+ '7': Building
398
+ '8': Business
399
+ '9': Business & Finance
400
+ '10': Buy Bus Ticket
401
+ '11': Buy Event Tickets
402
+ '12': Buy Movie Tickets
403
+ '13': Check Balance
404
+ '14': Company
405
+ '15': Computers & Internet
406
+ '16': Education & Reference
407
+ '17': Educational Institution
408
+ '18': Entertainment & Music
409
+ '19': Family & Relationships
410
+ '20': Film
411
+ '21': Find Apartment
412
+ '22': Find Attractions
413
+ '23': Find Bus
414
+ '24': Find Events
415
+ '25': Find Home By Area
416
+ '26': Find Movies
417
+ '27': Find Provider
418
+ '28': Find Restaurants
419
+ '29': Find Trains
420
+ '30': Get Alarms
421
+ '31': Get Available Time
422
+ '32': Get Cars Available
423
+ '33': Get Event Dates
424
+ '34': Get Events
425
+ '35': Get Ride
426
+ '36': Get Times For Movie
427
+ '37': Get Weather
428
+ '38': Health
429
+ '39': Lookup Music
430
+ '40': Lookup Song
431
+ '41': Make Payment
432
+ '42': Mean Of Transportation
433
+ '43': Natural Place
434
+ '44': Office Holder
435
+ '45': Plant
436
+ '46': Play Media
437
+ '47': Play Movie
438
+ '48': Play Song
439
+ '49': Politics & Government
440
+ '50': Request Payment
441
+ '51': Reserve Car
442
+ '52': Reserve Hotel
443
+ '53': Reserve One way Flight
444
+ '54': Reserve Restaurant
445
+ '55': Reserve Round trip Flights
446
+ '56': Schedule Visit
447
+ '57': Science & Mathematics
448
+ '58': Science & Technology
449
+ '59': Search Hotel
450
+ '60': Search House
451
+ '61': Search One way Flight
452
+ '62': Search Round trip Flights
453
+ '63': Society & Culture
454
+ '64': Sports
455
+ '65': Transfer Money
456
+ '66': Village
457
+ '67': World News
458
+ '68': Written Work
459
+ '69': accept reservations
460
+ '70': account blocked
461
+ '71': add contact
462
+ '72': admiration
463
+ '73': alarm
464
+ '74': alarm query
465
+ '75': alarm remove
466
+ '76': alarm set
467
+ '77': amusement
468
+ '78': anger
469
+ '79': annoyance
470
+ '80': application status
471
+ '81': approval
472
+ '82': apr
473
+ '83': are you a bot
474
+ '84': audio volume down
475
+ '85': audio volume mute
476
+ '86': audio volume other
477
+ '87': audio volume up
478
+ '88': balance
479
+ '89': bill balance
480
+ '90': bill due
481
+ '91': book flight
482
+ '92': book hotel
483
+ '93': calculator
484
+ '94': calendar
485
+ '95': calendar query
486
+ '96': calendar remove
487
+ '97': calendar set
488
+ '98': calendar update
489
+ '99': calories
490
+ '100': cancel
491
+ '101': cancel reservation
492
+ '102': car rental
493
+ '103': card declined
494
+ '104': caring
495
+ '105': carry on
496
+ '106': change accent
497
+ '107': change ai name
498
+ '108': change language
499
+ '109': change speed
500
+ '110': change user name
501
+ '111': change volume
502
+ '112': cleaning
503
+ '113': coffee
504
+ '114': confirm reservation
505
+ '115': confusion
506
+ '116': convert
507
+ '117': cook time
508
+ '118': cooking query
509
+ '119': cooking recipe
510
+ '120': create or add
511
+ '121': credit limit
512
+ '122': credit limit change
513
+ '123': credit score
514
+ '124': curiosity
515
+ '125': currency
516
+ '126': current location
517
+ '127': damaged card
518
+ '128': date
519
+ '129': date time convert
520
+ '130': date time query
521
+ '131': definition
522
+ '132': desire
523
+ '133': direct deposit
524
+ '134': directions
525
+ '135': disappointment
526
+ '136': disapproval
527
+ '137': disgust
528
+ '138': distance
529
+ '139': do you have pets
530
+ '140': email add contact
531
+ '141': email query
532
+ '142': email query contact
533
+ '143': email send email
534
+ '144': embarrassment
535
+ '145': events
536
+ '146': exchange rate
537
+ '147': excitement
538
+ '148': expiration date
539
+ '149': factoid
540
+ '150': fear
541
+ '151': find phone
542
+ '152': flight status
543
+ '153': flip coin
544
+ '154': food last
545
+ '155': freeze account
546
+ '156': fun fact
547
+ '157': game
548
+ '158': gas
549
+ '159': gas type
550
+ '160': general greet
551
+ '161': general joke
552
+ '162': general quirky
553
+ '163': goodbye
554
+ '164': gratitude
555
+ '165': greet
556
+ '166': greeting
557
+ '167': grief
558
+ '168': how busy
559
+ '169': how old are you
560
+ '170': hue light dim
561
+ '171': hue light off
562
+ '172': hue light up
563
+ '173': improve credit score
564
+ '174': income
565
+ '175': ingredient substitution
566
+ '176': ingredients list
567
+ '177': insurance
568
+ '178': insurance change
569
+ '179': interest rate
570
+ '180': international fees
571
+ '181': international visa
572
+ '182': iot cleaning
573
+ '183': iot coffee
574
+ '184': iot hue light change
575
+ '185': iot hue light dim
576
+ '186': iot hue light off
577
+ '187': iot hue light on
578
+ '188': iot hue light up
579
+ '189': iot wemo on
580
+ '190': iot wemo plug off
581
+ '191': joke
582
+ '192': joy
583
+ '193': jump start
584
+ '194': last maintenance
585
+ '195': lists create or add
586
+ '196': lists query
587
+ '197': lists remove
588
+ '198': lost luggage
589
+ '199': love
590
+ '200': make call
591
+ '201': maybe
592
+ '202': meal suggestion
593
+ '203': meaning of life
594
+ '204': measurement conversion
595
+ '205': meeting schedule
596
+ '206': min payment
597
+ '207': mpg
598
+ '208': music
599
+ '209': music dislike ness
600
+ '210': music likeness
601
+ '211': music query
602
+ '212': music settings
603
+ '213': negative
604
+ '214': nervousness
605
+ '215': neutral
606
+ '216': new card
607
+ '217': news query
608
+ '218': next holiday
609
+ '219': next song
610
+ '220': 'no'
611
+ '221': nutrition info
612
+ '222': oil change how
613
+ '223': oil change when
614
+ '224': optimism
615
+ '225': order
616
+ '226': order checks
617
+ '227': order status
618
+ '228': paid time off request status
619
+ '229': paid time off used
620
+ '230': pay bill
621
+ '231': payday
622
+ '232': pin change
623
+ '233': play audiobook
624
+ '234': play game
625
+ '235': play music
626
+ '236': play podcasts
627
+ '237': play radio
628
+ '238': plug type
629
+ '239': podcasts
630
+ '240': positive
631
+ '241': post
632
+ '242': pride
633
+ '243': pto balance
634
+ '244': pto request
635
+ '245': qa currency
636
+ '246': qa definition
637
+ '247': qa factoid
638
+ '248': qa maths
639
+ '249': qa stock
640
+ '250': query
641
+ '251': query contact
642
+ '252': quirky
643
+ '253': radio
644
+ '254': realization
645
+ '255': recipe
646
+ '256': recommendation events
647
+ '257': recommendation locations
648
+ '258': recommendation movies
649
+ '259': redeem rewards
650
+ '260': relief
651
+ '261': reminder
652
+ '262': reminder update
653
+ '263': remorse
654
+ '264': remove
655
+ '265': repeat
656
+ '266': replacement card duration
657
+ '267': report fraud
658
+ '268': report lost card
659
+ '269': reset settings
660
+ '270': restaurant reservation
661
+ '271': restaurant reviews
662
+ '272': restaurant suggestion
663
+ '273': rewards balance
664
+ '274': roll dice
665
+ '275': rollover 401k
666
+ '276': routing
667
+ '277': sadness
668
+ '278': schedule maintenance
669
+ '279': schedule meeting
670
+ '280': send email
671
+ '281': set
672
+ '282': settings
673
+ '283': share location
674
+ '284': shopping list
675
+ '285': shopping list update
676
+ '286': smart home
677
+ '287': social post
678
+ '288': social query
679
+ '289': spelling
680
+ '290': spending history
681
+ '291': surprise
682
+ '292': sync device
683
+ '293': take away order
684
+ '294': take away query
685
+ '295': taxes
686
+ '296': tell joke
687
+ '297': text
688
+ '298': thank you
689
+ '299': ticket
690
+ '300': time
691
+ '301': timer
692
+ '302': timezone
693
+ '303': tire change
694
+ '304': tire pressure
695
+ '305': todo list
696
+ '306': todo list update
697
+ '307': traffic
698
+ '308': transactions
699
+ '309': transfer
700
+ '310': translate
701
+ '311': transport query
702
+ '312': transport taxi
703
+ '313': transport ticket
704
+ '314': transport traffic
705
+ '315': travel alert
706
+ '316': travel notification
707
+ '317': travel suggestion
708
+ '318': uber
709
+ '319': update playlist
710
+ '320': user name
711
+ '321': vaccines
712
+ '322': volume other
713
+ '323': w2 wage and tax statement
714
+ '324': weather
715
+ '325': weather query
716
+ '326': wemo off
717
+ '327': wemo plug on
718
+ '328': what are your hobbies
719
+ '329': what can i ask you
720
+ '330': what is your name
721
+ '331': what song
722
+ '332': where are you from
723
+ '333': whisper mode
724
+ '334': who do you work for
725
+ '335': who made you
726
+ '336': 'yes'
727
+ - name: dataset_name
728
+ dtype:
729
+ class_label:
730
+ names:
731
+ '0': go_emotion
732
+ '1': sentiment_tweets_2020
733
+ '2': emotion
734
+ '3': sgd
735
+ '4': clinc_150
736
+ '5': slurp
737
+ '6': ag_news
738
+ '7': dbpedia
739
+ '8': yahoo
740
+ splits:
741
+ - name: train
742
+ num_bytes: 28974188
743
+ num_examples: 115127
744
+ - name: validation
745
+ num_bytes: 3213586
746
+ num_examples: 12806
747
+ - name: test
748
+ num_bytes: 36063590
749
+ num_examples: 168365
750
+ download_size: 1744258165
751
+ dataset_size: 68251364
752
+ - config_name: out-of-domain
753
+ features:
754
+ - name: text
755
+ dtype: string
756
+ - name: labels
757
+ sequence:
758
+ class_label:
759
+ names:
760
+ '0': Add To Playlist
761
+ '1': Bank account or service
762
+ '2': Book Restaurant
763
+ '3': Checking or savings account
764
+ '4': Chemistry; Metallurgy
765
+ '5': Consumer Loan
766
+ '6': Credit card
767
+ '7': Credit card or prepaid card
768
+ '8': Credit reporting
769
+ '9': Credit reporting, credit repair services, or other personal consumer
770
+ reports
771
+ '10': Debt collection
772
+ '11': EUROPEAN UNION
773
+ '12': Electricity
774
+ '13': Fixed Constructions
775
+ '14': General tagging of new or cross-sectional technology
776
+ '15': Get Weather
777
+ '16': Human Necessities
778
+ '17': Mechanical Engineering; Lightning; Heating; Weapons; Blasting
779
+ '18': Money transfer, virtual currency, or money service
780
+ '19': Money transfers
781
+ '20': Mortgage
782
+ '21': Other financial service
783
+ '22': Payday loan
784
+ '23': Payday loan, title loan, or personal loan
785
+ '24': Performing Operations; Transporting
786
+ '25': Physics
787
+ '26': Play Music
788
+ '27': Prepaid card
789
+ '28': Rate Book
790
+ '29': Refund not showing up
791
+ '30': Search Creative Work
792
+ '31': Search Screening Event
793
+ '32': Student loan
794
+ '33': Textiles; Paper
795
+ '34': Vehicle loan or lease
796
+ '35': Virtual currency
797
+ '36': activate my card
798
+ '37': age limit
799
+ '38': agri-foodstuffs
800
+ '39': agriculture, forestry and fisheries
801
+ '40': alarm query
802
+ '41': alarm remove
803
+ '42': alarm set
804
+ '43': apple pay or google pay
805
+ '44': atm support
806
+ '45': audio volume down
807
+ '46': audio volume mute
808
+ '47': audio volume other
809
+ '48': audio volume up
810
+ '49': automatic top up
811
+ '50': balance not updated after bank transfer
812
+ '51': balance not updated after cheque or cash deposit
813
+ '52': beneficiary not allowed
814
+ '53': business and competition
815
+ '54': calendar query
816
+ '55': calendar remove
817
+ '56': calendar set
818
+ '57': cancel transfer
819
+ '58': card about to expire
820
+ '59': card acceptance
821
+ '60': card arrival
822
+ '61': card delivery estimate
823
+ '62': card linking
824
+ '63': card not working
825
+ '64': card payment fee charged
826
+ '65': card payment not recognised
827
+ '66': card payment wrong exchange rate
828
+ '67': card swallowed
829
+ '68': cash withdrawal charge
830
+ '69': cash withdrawal not recognised
831
+ '70': change pin
832
+ '71': compromised card
833
+ '72': contactless not working
834
+ '73': cooking query
835
+ '74': cooking recipe
836
+ '75': country support
837
+ '76': datetime convert
838
+ '77': datetime query
839
+ '78': declined card payment
840
+ '79': declined cash withdrawal
841
+ '80': declined transfer
842
+ '81': direct debit payment not recognised
843
+ '82': disposable card limits
844
+ '83': economics
845
+ '84': edit personal details
846
+ '85': education and communications
847
+ '86': email addcontact
848
+ '87': email query
849
+ '88': email querycontact
850
+ '89': email sendemail
851
+ '90': employment and working conditions
852
+ '91': energy
853
+ '92': environment
854
+ '93': exchange charge
855
+ '94': exchange rate
856
+ '95': exchange via app
857
+ '96': extra charge on statement
858
+ '97': failed transfer
859
+ '98': fiat currency support
860
+ '99': finance
861
+ '100': general affirm
862
+ '101': general commandstop
863
+ '102': general confirm
864
+ '103': general dontcare
865
+ '104': general explain
866
+ '105': general greet
867
+ '106': general joke
868
+ '107': general negate
869
+ '108': general praise
870
+ '109': general quirky
871
+ '110': general repeat
872
+ '111': geography
873
+ '112': get disposable virtual card
874
+ '113': get physical card
875
+ '114': getting spare card
876
+ '115': getting virtual card
877
+ '116': industry
878
+ '117': international organisations
879
+ '118': international relations
880
+ '119': iot cleaning
881
+ '120': iot coffee
882
+ '121': iot hue lightchange
883
+ '122': iot hue lightdim
884
+ '123': iot hue lightoff
885
+ '124': iot hue lighton
886
+ '125': iot hue lightup
887
+ '126': iot wemo off
888
+ '127': iot wemo on
889
+ '128': law
890
+ '129': lists createoradd
891
+ '130': lists query
892
+ '131': lists remove
893
+ '132': lost or stolen card
894
+ '133': lost or stolen phone
895
+ '134': music dislikeness
896
+ '135': music likeness
897
+ '136': music query
898
+ '137': music settings
899
+ '138': negative
900
+ '139': neutral
901
+ '140': news query
902
+ '141': order physical card
903
+ '142': passcode forgotten
904
+ '143': pending card payment
905
+ '144': pending cash withdrawal
906
+ '145': pending top up
907
+ '146': pending transfer
908
+ '147': pin blocked
909
+ '148': play audiobook
910
+ '149': play game
911
+ '150': play music
912
+ '151': play podcasts
913
+ '152': play radio
914
+ '153': politics
915
+ '154': positive
916
+ '155': production, technology and research
917
+ '156': qa currency
918
+ '157': qa definition
919
+ '158': qa factoid
920
+ '159': qa maths
921
+ '160': qa stock
922
+ '161': receiving money
923
+ '162': recommendation events
924
+ '163': recommendation locations
925
+ '164': recommendation movies
926
+ '165': request refund
927
+ '166': reverted card payment?
928
+ '167': science
929
+ '168': social post
930
+ '169': social query
931
+ '170': social questions
932
+ '171': supported cards and currencies
933
+ '172': takeaway order
934
+ '173': takeaway query
935
+ '174': terminate account
936
+ '175': top up by bank transfer charge
937
+ '176': top up by card charge
938
+ '177': top up by cash or cheque
939
+ '178': top up failed
940
+ '179': top up limits
941
+ '180': top up reverted
942
+ '181': topping up by card
943
+ '182': trade
944
+ '183': transaction charged twice
945
+ '184': transfer fee charged
946
+ '185': transfer into account
947
+ '186': transfer not received by recipient
948
+ '187': transfer timing
949
+ '188': transport
950
+ '189': transport query
951
+ '190': transport taxi
952
+ '191': transport ticket
953
+ '192': transport traffic
954
+ '193': unable to verify identity
955
+ '194': verify my identity
956
+ '195': verify source of funds
957
+ '196': verify top up
958
+ '197': virtual card not working
959
+ '198': visa or mastercard
960
+ '199': weather query
961
+ '200': why verify identity
962
+ '201': wrong amount of cash received
963
+ '202': wrong exchange rate for cash withdrawal
964
+ - name: dataset_name
965
+ dtype:
966
+ class_label:
967
+ names:
968
+ '0': amazon_polarity
969
+ '1': finance_sentiment
970
+ '2': yelp
971
+ '3': banking77
972
+ '4': snips
973
+ '5': nlu_evaluation
974
+ '6': multi_eurlex
975
+ '7': patent
976
+ '8': consumer_finance
977
+ splits:
978
+ - name: train
979
+ num_bytes: 3608196895
980
+ num_examples: 4996673
981
+ - name: test
982
+ num_bytes: 541174753
983
+ num_examples: 625911
984
+ download_size: 1744258165
985
+ dataset_size: 4149371648
986
+ - config_name: aspect-normalized-out-of-domain
987
+ features:
988
+ - name: text
989
+ dtype: string
990
+ - name: labels
991
+ sequence:
992
+ class_label:
993
+ names:
994
+ '0': Add To Playlist
995
+ '1': Bank account or service
996
+ '2': Book Restaurant
997
+ '3': Checking or savings account
998
+ '4': Chemistry; Metallurgy
999
+ '5': Consumer Loan
1000
+ '6': Credit card
1001
+ '7': Credit card or prepaid card
1002
+ '8': Credit reporting
1003
+ '9': Credit reporting, credit repair services, or other personal consumer
1004
+ reports
1005
+ '10': Debt collection
1006
+ '11': EUROPEAN UNION
1007
+ '12': Electricity
1008
+ '13': Fixed Constructions
1009
+ '14': General tagging of new or cross-sectional technology
1010
+ '15': Get Weather
1011
+ '16': Human Necessities
1012
+ '17': Mechanical Engineering; Lightning; Heating; Weapons; Blasting
1013
+ '18': Money transfer, virtual currency, or money service
1014
+ '19': Money transfers
1015
+ '20': Mortgage
1016
+ '21': Other financial service
1017
+ '22': Payday loan
1018
+ '23': Payday loan, title loan, or personal loan
1019
+ '24': Performing Operations; Transporting
1020
+ '25': Physics
1021
+ '26': Play Music
1022
+ '27': Prepaid card
1023
+ '28': Rate Book
1024
+ '29': Refund not showing up
1025
+ '30': Search Creative Work
1026
+ '31': Search Screening Event
1027
+ '32': Student loan
1028
+ '33': Textiles; Paper
1029
+ '34': Vehicle loan or lease
1030
+ '35': Virtual currency
1031
+ '36': activate my card
1032
+ '37': age limit
1033
+ '38': agri-foodstuffs
1034
+ '39': agriculture, forestry and fisheries
1035
+ '40': alarm query
1036
+ '41': alarm remove
1037
+ '42': alarm set
1038
+ '43': apple pay or google pay
1039
+ '44': atm support
1040
+ '45': audio volume down
1041
+ '46': audio volume mute
1042
+ '47': audio volume other
1043
+ '48': audio volume up
1044
+ '49': automatic top up
1045
+ '50': balance not updated after bank transfer
1046
+ '51': balance not updated after cheque or cash deposit
1047
+ '52': beneficiary not allowed
1048
+ '53': business and competition
1049
+ '54': calendar query
1050
+ '55': calendar remove
1051
+ '56': calendar set
1052
+ '57': cancel transfer
1053
+ '58': card about to expire
1054
+ '59': card acceptance
1055
+ '60': card arrival
1056
+ '61': card delivery estimate
1057
+ '62': card linking
1058
+ '63': card not working
1059
+ '64': card payment fee charged
1060
+ '65': card payment not recognised
1061
+ '66': card payment wrong exchange rate
1062
+ '67': card swallowed
1063
+ '68': cash withdrawal charge
1064
+ '69': cash withdrawal not recognised
1065
+ '70': change pin
1066
+ '71': compromised card
1067
+ '72': contactless not working
1068
+ '73': cooking query
1069
+ '74': cooking recipe
1070
+ '75': country support
1071
+ '76': datetime convert
1072
+ '77': datetime query
1073
+ '78': declined card payment
1074
+ '79': declined cash withdrawal
1075
+ '80': declined transfer
1076
+ '81': direct debit payment not recognised
1077
+ '82': disposable card limits
1078
+ '83': economics
1079
+ '84': edit personal details
1080
+ '85': education and communications
1081
+ '86': email addcontact
1082
+ '87': email query
1083
+ '88': email querycontact
1084
+ '89': email sendemail
1085
+ '90': employment and working conditions
1086
+ '91': energy
1087
+ '92': environment
1088
+ '93': exchange charge
1089
+ '94': exchange rate
1090
+ '95': exchange via app
1091
+ '96': extra charge on statement
1092
+ '97': failed transfer
1093
+ '98': fiat currency support
1094
+ '99': finance
1095
+ '100': general affirm
1096
+ '101': general commandstop
1097
+ '102': general confirm
1098
+ '103': general dontcare
1099
+ '104': general explain
1100
+ '105': general greet
1101
+ '106': general joke
1102
+ '107': general negate
1103
+ '108': general praise
1104
+ '109': general quirky
1105
+ '110': general repeat
1106
+ '111': geography
1107
+ '112': get disposable virtual card
1108
+ '113': get physical card
1109
+ '114': getting spare card
1110
+ '115': getting virtual card
1111
+ '116': industry
1112
+ '117': international organisations
1113
+ '118': international relations
1114
+ '119': iot cleaning
1115
+ '120': iot coffee
1116
+ '121': iot hue lightchange
1117
+ '122': iot hue lightdim
1118
+ '123': iot hue lightoff
1119
+ '124': iot hue lighton
1120
+ '125': iot hue lightup
1121
+ '126': iot wemo off
1122
+ '127': iot wemo on
1123
+ '128': law
1124
+ '129': lists createoradd
1125
+ '130': lists query
1126
+ '131': lists remove
1127
+ '132': lost or stolen card
1128
+ '133': lost or stolen phone
1129
+ '134': music dislikeness
1130
+ '135': music likeness
1131
+ '136': music query
1132
+ '137': music settings
1133
+ '138': negative
1134
+ '139': neutral
1135
+ '140': news query
1136
+ '141': order physical card
1137
+ '142': passcode forgotten
1138
+ '143': pending card payment
1139
+ '144': pending cash withdrawal
1140
+ '145': pending top up
1141
+ '146': pending transfer
1142
+ '147': pin blocked
1143
+ '148': play audiobook
1144
+ '149': play game
1145
+ '150': play music
1146
+ '151': play podcasts
1147
+ '152': play radio
1148
+ '153': politics
1149
+ '154': positive
1150
+ '155': production, technology and research
1151
+ '156': qa currency
1152
+ '157': qa definition
1153
+ '158': qa factoid
1154
+ '159': qa maths
1155
+ '160': qa stock
1156
+ '161': receiving money
1157
+ '162': recommendation events
1158
+ '163': recommendation locations
1159
+ '164': recommendation movies
1160
+ '165': request refund
1161
+ '166': reverted card payment?
1162
+ '167': science
1163
+ '168': social post
1164
+ '169': social query
1165
+ '170': social questions
1166
+ '171': supported cards and currencies
1167
+ '172': takeaway order
1168
+ '173': takeaway query
1169
+ '174': terminate account
1170
+ '175': top up by bank transfer charge
1171
+ '176': top up by card charge
1172
+ '177': top up by cash or cheque
1173
+ '178': top up failed
1174
+ '179': top up limits
1175
+ '180': top up reverted
1176
+ '181': topping up by card
1177
+ '182': trade
1178
+ '183': transaction charged twice
1179
+ '184': transfer fee charged
1180
+ '185': transfer into account
1181
+ '186': transfer not received by recipient
1182
+ '187': transfer timing
1183
+ '188': transport
1184
+ '189': transport query
1185
+ '190': transport taxi
1186
+ '191': transport ticket
1187
+ '192': transport traffic
1188
+ '193': unable to verify identity
1189
+ '194': verify my identity
1190
+ '195': verify source of funds
1191
+ '196': verify top up
1192
+ '197': virtual card not working
1193
+ '198': visa or mastercard
1194
+ '199': weather query
1195
+ '200': why verify identity
1196
+ '201': wrong amount of cash received
1197
+ '202': wrong exchange rate for cash withdrawal
1198
+ - name: dataset_name
1199
+ dtype:
1200
+ class_label:
1201
+ names:
1202
+ '0': amazon_polarity
1203
+ '1': finance_sentiment
1204
+ '2': yelp
1205
+ '3': banking77
1206
+ '4': snips
1207
+ '5': nlu_evaluation
1208
+ '6': multi_eurlex
1209
+ '7': patent
1210
+ '8': consumer_finance
1211
+ splits:
1212
+ - name: train
1213
+ num_bytes: 109566474
1214
+ num_examples: 119167
1215
+ - name: validation
1216
+ num_bytes: 12432497
1217
+ num_examples: 13263
1218
+ - name: test
1219
+ num_bytes: 541174753
1220
+ num_examples: 625911
1221
+ download_size: 1744258165
1222
+ dataset_size: 663173724
1223
  ---
1224
  # Universal Text Classification Dataset (UTCD)
1225
 
 
1229
  dataset = load_dataset('claritylab/utcd', name='in-domain')
1230
  ```
1231
 
1232
+ ## Description
1233
+
1234
  UTCD is a curated compilation of 18 datasets revised for Zero-shot Text Classification spanning 3 aspect categories of Sentiment, Intent/Dialogue, and Topic classification. UTCD focuses on the task of zero-shot text classification where the candidate labels are descriptive of the text being classified. TUTCD consists of ~ 6M/800K train/test examples.
1235
 
1236
  UTCD was introduced in the Findings of ACL'23 Paper **Label Agnostic Pre-training for Zero-shot Text Classification** by ***Christopher Clarke, Yuzhao Heng, Yiping Kang, Krisztian Flautner, Lingjia Tang and Jason Mars***. [Project Homepage](https://github.com/ChrisIsKing/zero-shot-text-classification/tree/master).
 
1357
  | Train | 119,167 |
1358
  | Validation | 13,263 |
1359
  | Test | 625,911 |
 
 
 
utcd.py CHANGED
@@ -8,8 +8,6 @@ from typing import List
8
 
9
  import datasets
10
 
11
- from stefutil import *
12
-
13
 
14
  _DESCRIPTION = """
15
  UTCD is a compilation of 18 classification datasets spanning 3 categories of Sentiment,
@@ -38,7 +36,7 @@ class UtcdConfig(datasets.BuilderConfig):
38
  # Version history:
39
  # 0.0.1: Initial version.
40
  super(UtcdConfig, self).__init__(version=_VERSION, **kwargs)
41
- ca.check_mismatch('Dataset Domain', domain, ['in', 'out'])
42
  self.domain = domain
43
  self.normalize_aspect = normalize_aspect
44
 
@@ -51,7 +49,8 @@ class UtcdConfig(datasets.BuilderConfig):
51
  return f'{prefix}{domain_str}'
52
 
53
 
54
- config = StefConfig('config.json')
 
55
  _split2hf_split = dict(train=datasets.Split.TRAIN, eval=datasets.Split.VALIDATION, test=datasets.Split.TEST)
56
 
57
 
@@ -89,11 +88,11 @@ class Utcd(datasets.GeneratorBasedBuilder):
89
  DEFAULT_CONFIG_NAME = 'in-domain'
90
 
91
  def _get_dataset_names(self):
92
- return [dnm for dnm, d_dset in config().items() if d_dset['domain'] == self.config.domain]
93
 
94
  def _info(self):
95
  dnms = self._get_dataset_names()
96
- labels = [config(f'{dnm}.splits.{split}.labels') for dnm in dnms for split in ['train', 'test']]
97
 
98
  labels = sorted(set().union(*labels)) # drop duplicate labels across datasets
99
  return datasets.DatasetInfo(
 
8
 
9
  import datasets
10
 
 
 
11
 
12
  _DESCRIPTION = """
13
  UTCD is a compilation of 18 classification datasets spanning 3 categories of Sentiment,
 
36
  # Version history:
37
  # 0.0.1: Initial version.
38
  super(UtcdConfig, self).__init__(version=_VERSION, **kwargs)
39
+ assert domain in ['in', 'out']
40
  self.domain = domain
41
  self.normalize_aspect = normalize_aspect
42
 
 
49
  return f'{prefix}{domain_str}'
50
 
51
 
52
+ with open('config.json', 'r') as f:
53
+ _config = json.load(f)
54
  _split2hf_split = dict(train=datasets.Split.TRAIN, eval=datasets.Split.VALIDATION, test=datasets.Split.TEST)
55
 
56
 
 
88
  DEFAULT_CONFIG_NAME = 'in-domain'
89
 
90
  def _get_dataset_names(self):
91
+ return [dnm for dnm, d_dset in _config.items() if d_dset['domain'] == self.config.domain]
92
 
93
  def _info(self):
94
  dnms = self._get_dataset_names()
95
+ labels = [_config[dnm]['splits'][split]['labels'] for dnm in dnms for split in ['train', 'test']]
96
 
97
  labels = sorted(set().union(*labels)) # drop duplicate labels across datasets
98
  return datasets.DatasetInfo(