Hnri1920 cperiz commited on
Commit
f306120
·
0 Parent(s):

Duplicate from AmazonScience/massive

Browse files

Co-authored-by: Charith Peris <cperiz@users.noreply.huggingface.co>

Files changed (6) hide show
  1. .gitattributes +37 -0
  2. CITATION.cff +50 -0
  3. LICENSE +397 -0
  4. README.md +864 -0
  5. massive.py +660 -0
  6. test_massive.py +18 -0
.gitattributes ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ftz filter=lfs diff=lfs merge=lfs -text
6
+ *.gz filter=lfs diff=lfs merge=lfs -text
7
+ *.h5 filter=lfs diff=lfs merge=lfs -text
8
+ *.joblib filter=lfs diff=lfs merge=lfs -text
9
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
+ *.model filter=lfs diff=lfs merge=lfs -text
11
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
12
+ *.onnx filter=lfs diff=lfs merge=lfs -text
13
+ *.ot filter=lfs diff=lfs merge=lfs -text
14
+ *.parquet filter=lfs diff=lfs merge=lfs -text
15
+ *.pb filter=lfs diff=lfs merge=lfs -text
16
+ *.pt filter=lfs diff=lfs merge=lfs -text
17
+ *.pth filter=lfs diff=lfs merge=lfs -text
18
+ *.rar filter=lfs diff=lfs merge=lfs -text
19
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
20
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
21
+ *.tflite filter=lfs diff=lfs merge=lfs -text
22
+ *.tgz filter=lfs diff=lfs merge=lfs -text
23
+ *.wasm 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
28
+ # Audio files - uncompressed
29
+ *.pcm filter=lfs diff=lfs merge=lfs -text
30
+ *.sam filter=lfs diff=lfs merge=lfs -text
31
+ *.raw filter=lfs diff=lfs merge=lfs -text
32
+ # Audio files - compressed
33
+ *.aac filter=lfs diff=lfs merge=lfs -text
34
+ *.flac filter=lfs diff=lfs merge=lfs -text
35
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
36
+ *.ogg filter=lfs diff=lfs merge=lfs -text
37
+ *.wav filter=lfs diff=lfs merge=lfs -text
CITATION.cff ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.0.0
2
+ message: "MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages"
3
+ authors:
4
+ - family-names: "FitzGerald"
5
+ given-names: "Jack"
6
+ - family-names: "Hench"
7
+ given-names: "Christopher"
8
+ - family-names: "Peris"
9
+ given-names: "Charith"
10
+ - family-names: "Mackie"
11
+ given-names: "Scott"
12
+ - family-names: "Rottmann"
13
+ given-names: "Kay"
14
+ - family-names: "Sanchez"
15
+ given-names: "Ana"
16
+ - family-names: "Nash"
17
+ given-names: "Aaron"
18
+ - family-names: "Urbach"
19
+ given-names: "Liam"
20
+ - family-names: "Kakarala"
21
+ given-names: "Vishesh"
22
+ - family-names: "Singh"
23
+ given-names: "Richa"
24
+ - family-names: "Ranganath"
25
+ given-names: "Swetha"
26
+ - family-names: "Crist"
27
+ given-names: "Laurie"
28
+ - family-names: "Britan"
29
+ given-names: "Misha"
30
+ - family-names: "Leeuwis"
31
+ given-names: "Wouter"
32
+ - family-names: "Tur"
33
+ given-names: "Gokhan"
34
+ - family-names: "Natarajan"
35
+ given-names: "Prem"
36
+ title: "MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages"
37
+ version: 1.0.0
38
+ date-released: 2022-04-18
39
+ url: "https://arxiv.org/abs/2204.08582"
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
LICENSE ADDED
@@ -0,0 +1,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright Amazon.com Inc. or its affiliates.
2
+
3
+ Attribution 4.0 International
4
+
5
+ =======================================================================
6
+
7
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
8
+ does not provide legal services or legal advice. Distribution of
9
+ Creative Commons public licenses does not create a lawyer-client or
10
+ other relationship. Creative Commons makes its licenses and related
11
+ information available on an "as-is" basis. Creative Commons gives no
12
+ warranties regarding its licenses, any material licensed under their
13
+ terms and conditions, or any related information. Creative Commons
14
+ disclaims all liability for damages resulting from their use to the
15
+ fullest extent possible.
16
+
17
+ Using Creative Commons Public Licenses
18
+
19
+ Creative Commons public licenses provide a standard set of terms and
20
+ conditions that creators and other rights holders may use to share
21
+ original works of authorship and other material subject to copyright
22
+ and certain other rights specified in the public license below. The
23
+ following considerations are for informational purposes only, are not
24
+ exhaustive, and do not form part of our licenses.
25
+
26
+ Considerations for licensors: Our public licenses are
27
+ intended for use by those authorized to give the public
28
+ permission to use material in ways otherwise restricted by
29
+ copyright and certain other rights. Our licenses are
30
+ irrevocable. Licensors should read and understand the terms
31
+ and conditions of the license they choose before applying it.
32
+ Licensors should also secure all rights necessary before
33
+ applying our licenses so that the public can reuse the
34
+ material as expected. Licensors should clearly mark any
35
+ material not subject to the license. This includes other CC-
36
+ licensed material, or material used under an exception or
37
+ limitation to copyright. More considerations for licensors:
38
+ wiki.creativecommons.org/Considerations_for_licensors
39
+
40
+ Considerations for the public: By using one of our public
41
+ licenses, a licensor grants the public permission to use the
42
+ licensed material under specified terms and conditions. If
43
+ the licensor's permission is not necessary for any reason--for
44
+ example, because of any applicable exception or limitation to
45
+ copyright--then that use is not regulated by the license. Our
46
+ licenses grant only permissions under copyright and certain
47
+ other rights that a licensor has authority to grant. Use of
48
+ the licensed material may still be restricted for other
49
+ reasons, including because others have copyright or other
50
+ rights in the material. A licensor may make special requests,
51
+ such as asking that all changes be marked or described.
52
+ Although not required by our licenses, you are encouraged to
53
+ respect those requests where reasonable. More considerations
54
+ for the public:
55
+ wiki.creativecommons.org/Considerations_for_licensees
56
+
57
+ =======================================================================
58
+
59
+ Creative Commons Attribution 4.0 International Public License
60
+
61
+ By exercising the Licensed Rights (defined below), You accept and agree
62
+ to be bound by the terms and conditions of this Creative Commons
63
+ Attribution 4.0 International Public License ("Public License"). To the
64
+ extent this Public License may be interpreted as a contract, You are
65
+ granted the Licensed Rights in consideration of Your acceptance of
66
+ these terms and conditions, and the Licensor grants You such rights in
67
+ consideration of benefits the Licensor receives from making the
68
+ Licensed Material available under these terms and conditions.
69
+
70
+
71
+ Section 1 -- Definitions.
72
+
73
+ a. Adapted Material means material subject to Copyright and Similar
74
+ Rights that is derived from or based upon the Licensed Material
75
+ and in which the Licensed Material is translated, altered,
76
+ arranged, transformed, or otherwise modified in a manner requiring
77
+ permission under the Copyright and Similar Rights held by the
78
+ Licensor. For purposes of this Public License, where the Licensed
79
+ Material is a musical work, performance, or sound recording,
80
+ Adapted Material is always produced where the Licensed Material is
81
+ synched in timed relation with a moving image.
82
+
83
+ b. Adapter's License means the license You apply to Your Copyright
84
+ and Similar Rights in Your contributions to Adapted Material in
85
+ accordance with the terms and conditions of this Public License.
86
+
87
+ c. Copyright and Similar Rights means copyright and/or similar rights
88
+ closely related to copyright including, without limitation,
89
+ performance, broadcast, sound recording, and Sui Generis Database
90
+ Rights, without regard to how the rights are labeled or
91
+ categorized. For purposes of this Public License, the rights
92
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
93
+ Rights.
94
+
95
+ d. Effective Technological Measures means those measures that, in the
96
+ absence of proper authority, may not be circumvented under laws
97
+ fulfilling obligations under Article 11 of the WIPO Copyright
98
+ Treaty adopted on December 20, 1996, and/or similar international
99
+ agreements.
100
+
101
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
102
+ any other exception or limitation to Copyright and Similar Rights
103
+ that applies to Your use of the Licensed Material.
104
+
105
+ f. Licensed Material means the artistic or literary work, database,
106
+ or other material to which the Licensor applied this Public
107
+ License.
108
+
109
+ g. Licensed Rights means the rights granted to You subject to the
110
+ terms and conditions of this Public License, which are limited to
111
+ all Copyright and Similar Rights that apply to Your use of the
112
+ Licensed Material and that the Licensor has authority to license.
113
+
114
+ h. Licensor means the individual(s) or entity(ies) granting rights
115
+ under this Public License.
116
+
117
+ i. Share means to provide material to the public by any means or
118
+ process that requires permission under the Licensed Rights, such
119
+ as reproduction, public display, public performance, distribution,
120
+ dissemination, communication, or importation, and to make material
121
+ available to the public including in ways that members of the
122
+ public may access the material from a place and at a time
123
+ individually chosen by them.
124
+
125
+ j. Sui Generis Database Rights means rights other than copyright
126
+ resulting from Directive 96/9/EC of the European Parliament and of
127
+ the Council of 11 March 1996 on the legal protection of databases,
128
+ as amended and/or succeeded, as well as other essentially
129
+ equivalent rights anywhere in the world.
130
+
131
+ k. You means the individual or entity exercising the Licensed Rights
132
+ under this Public License. Your has a corresponding meaning.
133
+
134
+
135
+ Section 2 -- Scope.
136
+
137
+ a. License grant.
138
+
139
+ 1. Subject to the terms and conditions of this Public License,
140
+ the Licensor hereby grants You a worldwide, royalty-free,
141
+ non-sublicensable, non-exclusive, irrevocable license to
142
+ exercise the Licensed Rights in the Licensed Material to:
143
+
144
+ a. reproduce and Share the Licensed Material, in whole or
145
+ in part; and
146
+
147
+ b. produce, reproduce, and Share Adapted Material.
148
+
149
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
150
+ Exceptions and Limitations apply to Your use, this Public
151
+ License does not apply, and You do not need to comply with
152
+ its terms and conditions.
153
+
154
+ 3. Term. The term of this Public License is specified in Section
155
+ 6(a).
156
+
157
+ 4. Media and formats; technical modifications allowed. The
158
+ Licensor authorizes You to exercise the Licensed Rights in
159
+ all media and formats whether now known or hereafter created,
160
+ and to make technical modifications necessary to do so. The
161
+ Licensor waives and/or agrees not to assert any right or
162
+ authority to forbid You from making technical modifications
163
+ necessary to exercise the Licensed Rights, including
164
+ technical modifications necessary to circumvent Effective
165
+ Technological Measures. For purposes of this Public License,
166
+ simply making modifications authorized by this Section 2(a)
167
+ (4) never produces Adapted Material.
168
+
169
+ 5. Downstream recipients.
170
+
171
+ a. Offer from the Licensor -- Licensed Material. Every
172
+ recipient of the Licensed Material automatically
173
+ receives an offer from the Licensor to exercise the
174
+ Licensed Rights under the terms and conditions of this
175
+ Public License.
176
+
177
+ b. No downstream restrictions. You may not offer or impose
178
+ any additional or different terms or conditions on, or
179
+ apply any Effective Technological Measures to, the
180
+ Licensed Material if doing so restricts exercise of the
181
+ Licensed Rights by any recipient of the Licensed
182
+ Material.
183
+
184
+ 6. No endorsement. Nothing in this Public License constitutes or
185
+ may be construed as permission to assert or imply that You
186
+ are, or that Your use of the Licensed Material is, connected
187
+ with, or sponsored, endorsed, or granted official status by,
188
+ the Licensor or others designated to receive attribution as
189
+ provided in Section 3(a)(1)(A)(i).
190
+
191
+ b. Other rights.
192
+
193
+ 1. Moral rights, such as the right of integrity, are not
194
+ licensed under this Public License, nor are publicity,
195
+ privacy, and/or other similar personality rights; however, to
196
+ the extent possible, the Licensor waives and/or agrees not to
197
+ assert any such rights held by the Licensor to the limited
198
+ extent necessary to allow You to exercise the Licensed
199
+ Rights, but not otherwise.
200
+
201
+ 2. Patent and trademark rights are not licensed under this
202
+ Public License.
203
+
204
+ 3. To the extent possible, the Licensor waives any right to
205
+ collect royalties from You for the exercise of the Licensed
206
+ Rights, whether directly or through a collecting society
207
+ under any voluntary or waivable statutory or compulsory
208
+ licensing scheme. In all other cases the Licensor expressly
209
+ reserves any right to collect such royalties.
210
+
211
+
212
+ Section 3 -- License Conditions.
213
+
214
+ Your exercise of the Licensed Rights is expressly made subject to the
215
+ following conditions.
216
+
217
+ a. Attribution.
218
+
219
+ 1. If You Share the Licensed Material (including in modified
220
+ form), You must:
221
+
222
+ a. retain the following if it is supplied by the Licensor
223
+ with the Licensed Material:
224
+
225
+ i. identification of the creator(s) of the Licensed
226
+ Material and any others designated to receive
227
+ attribution, in any reasonable manner requested by
228
+ the Licensor (including by pseudonym if
229
+ designated);
230
+
231
+ ii. a copyright notice;
232
+
233
+ iii. a notice that refers to this Public License;
234
+
235
+ iv. a notice that refers to the disclaimer of
236
+ warranties;
237
+
238
+ v. a URI or hyperlink to the Licensed Material to the
239
+ extent reasonably practicable;
240
+
241
+ b. indicate if You modified the Licensed Material and
242
+ retain an indication of any previous modifications; and
243
+
244
+ c. indicate the Licensed Material is licensed under this
245
+ Public License, and include the text of, or the URI or
246
+ hyperlink to, this Public License.
247
+
248
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
249
+ reasonable manner based on the medium, means, and context in
250
+ which You Share the Licensed Material. For example, it may be
251
+ reasonable to satisfy the conditions by providing a URI or
252
+ hyperlink to a resource that includes the required
253
+ information.
254
+
255
+ 3. If requested by the Licensor, You must remove any of the
256
+ information required by Section 3(a)(1)(A) to the extent
257
+ reasonably practicable.
258
+
259
+ 4. If You Share Adapted Material You produce, the Adapter's
260
+ License You apply must not prevent recipients of the Adapted
261
+ Material from complying with this Public License.
262
+
263
+
264
+ Section 4 -- Sui Generis Database Rights.
265
+
266
+ Where the Licensed Rights include Sui Generis Database Rights that
267
+ apply to Your use of the Licensed Material:
268
+
269
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
270
+ to extract, reuse, reproduce, and Share all or a substantial
271
+ portion of the contents of the database;
272
+
273
+ b. if You include all or a substantial portion of the database
274
+ contents in a database in which You have Sui Generis Database
275
+ Rights, then the database in which You have Sui Generis Database
276
+ Rights (but not its individual contents) is Adapted Material; and
277
+
278
+ c. You must comply with the conditions in Section 3(a) if You Share
279
+ all or a substantial portion of the contents of the database.
280
+
281
+ For the avoidance of doubt, this Section 4 supplements and does not
282
+ replace Your obligations under this Public License where the Licensed
283
+ Rights include other Copyright and Similar Rights.
284
+
285
+
286
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
287
+
288
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
289
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
290
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
291
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
292
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
293
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
294
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
295
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
296
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
297
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
298
+
299
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
300
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
301
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
302
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
303
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
304
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
305
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
306
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
307
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
308
+
309
+ c. The disclaimer of warranties and limitation of liability provided
310
+ above shall be interpreted in a manner that, to the extent
311
+ possible, most closely approximates an absolute disclaimer and
312
+ waiver of all liability.
313
+
314
+
315
+ Section 6 -- Term and Termination.
316
+
317
+ a. This Public License applies for the term of the Copyright and
318
+ Similar Rights licensed here. However, if You fail to comply with
319
+ this Public License, then Your rights under this Public License
320
+ terminate automatically.
321
+
322
+ b. Where Your right to use the Licensed Material has terminated under
323
+ Section 6(a), it reinstates:
324
+
325
+ 1. automatically as of the date the violation is cured, provided
326
+ it is cured within 30 days of Your discovery of the
327
+ violation; or
328
+
329
+ 2. upon express reinstatement by the Licensor.
330
+
331
+ For the avoidance of doubt, this Section 6(b) does not affect any
332
+ right the Licensor may have to seek remedies for Your violations
333
+ of this Public License.
334
+
335
+ c. For the avoidance of doubt, the Licensor may also offer the
336
+ Licensed Material under separate terms or conditions or stop
337
+ distributing the Licensed Material at any time; however, doing so
338
+ will not terminate this Public License.
339
+
340
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
341
+ License.
342
+
343
+
344
+ Section 7 -- Other Terms and Conditions.
345
+
346
+ a. The Licensor shall not be bound by any additional or different
347
+ terms or conditions communicated by You unless expressly agreed.
348
+
349
+ b. Any arrangements, understandings, or agreements regarding the
350
+ Licensed Material not stated herein are separate from and
351
+ independent of the terms and conditions of this Public License.
352
+
353
+
354
+ Section 8 -- Interpretation.
355
+
356
+ a. For the avoidance of doubt, this Public License does not, and
357
+ shall not be interpreted to, reduce, limit, restrict, or impose
358
+ conditions on any use of the Licensed Material that could lawfully
359
+ be made without permission under this Public License.
360
+
361
+ b. To the extent possible, if any provision of this Public License is
362
+ deemed unenforceable, it shall be automatically reformed to the
363
+ minimum extent necessary to make it enforceable. If the provision
364
+ cannot be reformed, it shall be severed from this Public License
365
+ without affecting the enforceability of the remaining terms and
366
+ conditions.
367
+
368
+ c. No term or condition of this Public License will be waived and no
369
+ failure to comply consented to unless expressly agreed to by the
370
+ Licensor.
371
+
372
+ d. Nothing in this Public License constitutes or may be interpreted
373
+ as a limitation upon, or waiver of, any privileges and immunities
374
+ that apply to the Licensor or You, including from the legal
375
+ processes of any jurisdiction or authority.
376
+
377
+
378
+ =======================================================================
379
+
380
+ Creative Commons is not a party to its public licenses.
381
+ Notwithstanding, Creative Commons may elect to apply one of its public
382
+ licenses to material it publishes and in those instances will be
383
+ considered the “Licensor.” The text of the Creative Commons public
384
+ licenses is dedicated to the public domain under the CC0 Public Domain
385
+ Dedication. Except for the limited purpose of indicating that material
386
+ is shared under a Creative Commons public license or as otherwise
387
+ permitted by the Creative Commons policies published at
388
+ creativecommons.org/policies, Creative Commons does not authorize the
389
+ use of the trademark "Creative Commons" or any other trademark or logo
390
+ of Creative Commons without its prior written consent including,
391
+ without limitation, in connection with any unauthorized modifications
392
+ to any of its public licenses or any other arrangements,
393
+ understandings, or agreements concerning use of licensed material. For
394
+ the avoidance of doubt, this paragraph does not form part of the public
395
+ licenses.
396
+
397
+ Creative Commons may be contacted at creativecommons.org.
README.md ADDED
@@ -0,0 +1,864 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - found
6
+ license:
7
+ - cc-by-4.0
8
+ multilinguality:
9
+ - af-ZA
10
+ - am-ET
11
+ - ar-SA
12
+ - az-AZ
13
+ - bn-BD
14
+ - ca-ES
15
+ - cy-GB
16
+ - da-DK
17
+ - de-DE
18
+ - el-GR
19
+ - en-US
20
+ - es-ES
21
+ - fa-IR
22
+ - fi-FI
23
+ - fr-FR
24
+ - he-IL
25
+ - hi-IN
26
+ - hu-HU
27
+ - hy-AM
28
+ - id-ID
29
+ - is-IS
30
+ - it-IT
31
+ - ja-JP
32
+ - jv-ID
33
+ - ka-GE
34
+ - km-KH
35
+ - kn-IN
36
+ - ko-KR
37
+ - lv-LV
38
+ - ml-IN
39
+ - mn-MN
40
+ - ms-MY
41
+ - my-MM
42
+ - nb-NO
43
+ - nl-NL
44
+ - pl-PL
45
+ - pt-PT
46
+ - ro-RO
47
+ - ru-RU
48
+ - sl-SL
49
+ - sq-AL
50
+ - sv-SE
51
+ - sw-KE
52
+ - ta-IN
53
+ - te-IN
54
+ - th-TH
55
+ - tl-PH
56
+ - tr-TR
57
+ - ur-PK
58
+ - vi-VN
59
+ - zh-CN
60
+ - zh-TW
61
+ size_categories:
62
+ - 100K<n<1M
63
+ source_datasets:
64
+ - original
65
+ task_categories:
66
+ - text-classification
67
+ task_ids:
68
+ - intent-classification
69
+ - multi-class-classification
70
+ paperswithcode_id: massive
71
+ pretty_name: MASSIVE
72
+ language_bcp47:
73
+ - af-ZA
74
+ - am-ET
75
+ - ar-SA
76
+ - az-AZ
77
+ - bn-BD
78
+ - ca-ES
79
+ - cy-GB
80
+ - da-DK
81
+ - de-DE
82
+ - el-GR
83
+ - en-US
84
+ - es-ES
85
+ - fa-IR
86
+ - fi-FI
87
+ - fr-FR
88
+ - he-IL
89
+ - hi-IN
90
+ - hu-HU
91
+ - hy-AM
92
+ - id-ID
93
+ - is-IS
94
+ - it-IT
95
+ - ja-JP
96
+ - jv-ID
97
+ - ka-GE
98
+ - km-KH
99
+ - kn-IN
100
+ - ko-KR
101
+ - lv-LV
102
+ - ml-IN
103
+ - mn-MN
104
+ - ms-MY
105
+ - my-MM
106
+ - nb-NO
107
+ - nl-NL
108
+ - pl-PL
109
+ - pt-PT
110
+ - ro-RO
111
+ - ru-RU
112
+ - sl-SL
113
+ - sq-AL
114
+ - sv-SE
115
+ - sw-KE
116
+ - ta-IN
117
+ - te-IN
118
+ - th-TH
119
+ - tl-PH
120
+ - tr-TR
121
+ - ur-PK
122
+ - vi-VN
123
+ - zh-CN
124
+ - zh-TW
125
+ tags:
126
+ - natural-language-understanding
127
+ ---
128
+
129
+ # MASSIVE 1.1: A 1M-Example Multilingual Natural Language Understanding Dataset with 52 Typologically-Diverse Languages
130
+
131
+ ## Table of Contents
132
+ - [Dataset Card for [Needs More Information]](#dataset-card-for-needs-more-information)
133
+ - [Table of Contents](#table-of-contents)
134
+ - [Dataset Description](#dataset-description)
135
+ - [Dataset Summary](#dataset-summary)
136
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
137
+ - [Languages](#languages)
138
+ - [Dataset Structure](#dataset-structure)
139
+ - [Data Instances](#data-instances)
140
+ - [Data Fields](#data-fields)
141
+ - [Data Splits](#data-splits)
142
+ - [Dataset Creation](#dataset-creation)
143
+ - [Curation Rationale](#curation-rationale)
144
+ - [Source Data](#source-data)
145
+ - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
146
+ - [Who are the source language producers?](#who-are-the-source-language-producers)
147
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
148
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
149
+ - [Other Known Limitations](#other-known-limitations)
150
+ - [Additional Information](#additional-information)
151
+ - [Dataset Curators](#dataset-curators)
152
+ - [Licensing Information](#licensing-information)
153
+ - [No Warranty](#no-warranty)
154
+ - [Citation Information](#citation-information)
155
+
156
+ ## Dataset Description
157
+
158
+ - **Homepage:** https://github.com/alexa/massive
159
+ - **Repository:** https://github.com/alexa/massive
160
+ - **Paper:** https://arxiv.org/abs/2204.08582
161
+ - **Leaderboard:** https://eval.ai/web/challenges/challenge-page/1697/overview
162
+ - **Point of Contact:** [GitHub](https://github.com/alexa/massive/issues)
163
+
164
+ ### Dataset Summary
165
+
166
+ MASSIVE 1.1 is a parallel dataset of > 1M utterances across 52 languages with annotations for the Natural Language Understanding tasks of intent prediction and slot annotation. Utterances span 60 intents and include 55 slot types. MASSIVE was created by localizing the SLURP dataset, composed of general Intelligent Voice Assistant single-shot interactions.
167
+
168
+ | Name | Lang | Utt/Lang | Domains | Intents | Slots |
169
+ |:-------------------------------------------------------------------------------:|:-------:|:--------------:|:-------:|:--------:|:------:|
170
+ | MASSIVE 1.1 | 52 | 19,521 | 18 | 60 | 55 |
171
+ | SLURP (Bastianelli et al., 2020) | 1 | 16,521 | 18 | 60 | 55 |
172
+ | NLU Evaluation Data (Liu et al., 2019) | 1 | 25,716 | 18 | 54 | 56 |
173
+ | Airline Travel Information System (ATIS) (Price, 1990) | 1 | 5,871 | 1 | 26 | 129 |
174
+ | ATIS with Hindi and Turkish (Upadhyay et al., 2018) | 3 | 1,315-5,871 | 1 | 26 | 129 |
175
+ | MultiATIS++ (Xu et al., 2020) | 9 | 1,422-5,897 | 1 | 21-26 | 99-140 |
176
+ | Snips (Coucke et al., 2018) | 1 | 14,484 | - | 7 | 53 |
177
+ | Snips with French (Saade et al., 2019) | 2 | 4,818 | 2 | 14-15 | 11-12 |
178
+ | Task Oriented Parsing (TOP) (Gupta et al., 2018) | 1 | 44,873 | 2 | 25 | 36 |
179
+ | Multilingual Task-Oriented Semantic Parsing (MTOP) (Li et al., 2021) | 6 | 15,195-22,288 | 11 | 104-113 | 72-75 |
180
+ | Cross-Lingual Multilingual Task Oriented Dialog (Schuster et al., 2019) | 3 | 5,083-43,323 | 3 | 12 | 11 |
181
+ | Microsoft Dialog Challenge (Li et al., 2018) | 1 | 38,276 | 3 | 11 | 29 |
182
+ | Fluent Speech Commands (FSC) (Lugosch et al., 2019) | 1 | 30,043 | - | 31 | - |
183
+ | Chinese Audio-Textual Spoken Language Understanding (CATSLU) (Zhu et al., 2019) | 1 | 16,258 | 4 | - | 94 |
184
+
185
+ ### Supported Tasks and Leaderboards
186
+
187
+ The dataset can be used to train a model for `natural-language-understanding` (NLU) :
188
+
189
+ - `intent-classification`
190
+ - `multi-class-classification`
191
+ - `natural-language-understanding`
192
+
193
+ ### Languages
194
+
195
+ The MASSIVE 1.1 corpora consists of parallel sentences from 52 languages :
196
+
197
+ - `Afrikaans - South Africa (af-ZA)`
198
+ - `Amharic - Ethiopia (am-ET)`
199
+ - `Arabic - Saudi Arabia (ar-SA)`
200
+ - `Azeri - Azerbaijan (az-AZ)`
201
+ - `Bengali - Bangladesh (bn-BD)`
202
+ - `Catalan - Spain (ca-ES)`
203
+ - `Chinese - China (zh-CN)`
204
+ - `Chinese - Taiwan (zh-TW)`
205
+ - `Danish - Denmark (da-DK)`
206
+ - `German - Germany (de-DE)`
207
+ - `Greek - Greece (el-GR)`
208
+ - `English - United States (en-US)`
209
+ - `Spanish - Spain (es-ES)`
210
+ - `Farsi - Iran (fa-IR)`
211
+ - `Finnish - Finland (fi-FI)`
212
+ - `French - France (fr-FR)`
213
+ - `Hebrew - Israel (he-IL)`
214
+ - `Hungarian - Hungary (hu-HU)`
215
+ - `Armenian - Armenia (hy-AM)`
216
+ - `Indonesian - Indonesia (id-ID)`
217
+ - `Icelandic - Iceland (is-IS)`
218
+ - `Italian - Italy (it-IT)`
219
+ - `Japanese - Japan (ja-JP)`
220
+ - `Javanese - Indonesia (jv-ID)`
221
+ - `Georgian - Georgia (ka-GE)`
222
+ - `Khmer - Cambodia (km-KH)`
223
+ - `Korean - Korea (ko-KR)`
224
+ - `Latvian - Latvia (lv-LV)`
225
+ - `Mongolian - Mongolia (mn-MN)`
226
+ - `Malay - Malaysia (ms-MY)`
227
+ - `Burmese - Myanmar (my-MM)`
228
+ - `Norwegian - Norway (nb-NO)`
229
+ - `Dutch - Netherlands (nl-NL)`
230
+ - `Polish - Poland (pl-PL)`
231
+ - `Portuguese - Portugal (pt-PT)`
232
+ - `Romanian - Romania (ro-RO)`
233
+ - `Russian - Russia (ru-RU)`
234
+ - `Slovanian - Slovania (sl-SL)`
235
+ - `Albanian - Albania (sq-AL)`
236
+ - `Swedish - Sweden (sv-SE)`
237
+ - `Swahili - Kenya (sw-KE)`
238
+ - `Hindi - India (hi-IN)`
239
+ - `Kannada - India (kn-IN)`
240
+ - `Malayalam - India (ml-IN)`
241
+ - `Tamil - India (ta-IN)`
242
+ - `Telugu - India (te-IN)`
243
+ - `Thai - Thailand (th-TH)`
244
+ - `Tagalog - Philippines (tl-PH)`
245
+ - `Turkish - Turkey (tr-TR)`
246
+ - `Urdu - Pakistan (ur-PK)`
247
+ - `Vietnamese - Vietnam (vi-VN)`
248
+ - `Welsh - United Kingdom (cy-GB)`
249
+
250
+ ## Load the dataset with HuggingFace
251
+
252
+ ```python
253
+ from datasets import load_dataset
254
+ dataset = load_dataset("AmazonScience/massive", "en-US", split='train')
255
+ print(dataset[0])
256
+ ```
257
+
258
+ ## Dataset Structure
259
+
260
+ ### Data Instances
261
+
262
+ ```json
263
+ {
264
+ "id": "0",
265
+ "locale": "fr-FR",
266
+ "partition": "test",
267
+ "scenario": "alarm",
268
+ "intent": "alarm_set",
269
+ "utt": "réveille-moi à cinq heures du matin cette semaine",
270
+ "annot_utt": "réveille-moi à [time : cinq heures du matin] [date : cette semaine]",
271
+ "worker_id": "22",
272
+ "slot_method": [
273
+ { "slot": "time", "method": "translation" },
274
+ { "slot": "date", "method": "translation" }
275
+ ],
276
+ "judgments": [
277
+ {
278
+ "worker_id": "22",
279
+ "intent_score": 1,
280
+ "slots_score": 1,
281
+ "grammar_score": 4,
282
+ "spelling_score": 2,
283
+ "language_identification": "target"
284
+ },
285
+ {
286
+ "worker_id": "8",
287
+ "intent_score": 1,
288
+ "slots_score": 1,
289
+ "grammar_score": 4,
290
+ "spelling_score": 2,
291
+ "language_identification": "target"
292
+ },
293
+ {
294
+ "worker_id": "0",
295
+ "intent_score": 1,
296
+ "slots_score": 1,
297
+ "grammar_score": 4,
298
+ "spelling_score": 2,
299
+ "language_identification": "target"
300
+ }
301
+ ]
302
+ }
303
+ ```
304
+
305
+ ### Data Fields
306
+
307
+ `id`: maps to the original ID in the [SLURP](https://github.com/pswietojanski/slurp) collection. Mapping back to the SLURP en-US utterance, this utterance served as the basis for this localization.
308
+
309
+ `locale`: is the language and country code accoring to ISO-639-1 and ISO-3166.
310
+
311
+ `partition`: is either `train`, `dev`, or `test`, according to the original split in [SLURP](https://github.com/pswietojanski/slurp).
312
+
313
+ `scenario`: is the general domain, aka "scenario" in SLURP terminology, of an utterance
314
+
315
+ `intent`: is the specific intent of an utterance within a domain formatted as `{scenario}_{intent}`
316
+
317
+ `utt`: the raw utterance text without annotations
318
+
319
+ `annot_utt`: the text from `utt` with slot annotations formatted as `[{label} : {entity}]`
320
+
321
+ `worker_id`: The obfuscated worker ID from MTurk of the worker completing the localization of the utterance. Worker IDs are specific to a locale and do *not* map across locales.
322
+
323
+ `slot_method`: for each slot in the utterance, whether that slot was a `translation` (i.e., same expression just in the target language), `localization` (i.e., not the same expression but a different expression was chosen more suitable to the phrase in that locale), or `unchanged` (i.e., the original en-US slot value was copied over without modification).
324
+
325
+ `judgments`: Each judgment collected for the localized utterance has 6 keys. `worker_id` is the obfuscated worker ID from MTurk of the worker completing the judgment. Worker IDs are specific to a locale and do *not* map across locales, but *are* consistent across the localization tasks and the judgment tasks, e.g., judgment worker ID 32 in the example above may appear as the localization worker ID for the localization of a different de-DE utterance, in which case it would be the same worker.
326
+
327
+ ```plain
328
+ intent_score : "Does the sentence match the intent?"
329
+ 0: No
330
+ 1: Yes
331
+ 2: It is a reasonable interpretation of the goal
332
+
333
+ slots_score : "Do all these terms match the categories in square brackets?"
334
+ 0: No
335
+ 1: Yes
336
+ 2: There are no words in square brackets (utterance without a slot)
337
+
338
+ grammar_score : "Read the sentence out loud. Ignore any spelling, punctuation, or capitalization errors. Does it sound natural?"
339
+ 0: Completely unnatural (nonsensical, cannot be understood at all)
340
+ 1: Severe errors (the meaning cannot be understood and doesn't sound natural in your language)
341
+ 2: Some errors (the meaning can be understood but it doesn't sound natural in your language)
342
+ 3: Good enough (easily understood and sounds almost natural in your language)
343
+ 4: Perfect (sounds natural in your language)
344
+
345
+ spelling_score : "Are all words spelled correctly? Ignore any spelling variances that may be due to differences in dialect. Missing spaces should be marked as a spelling error."
346
+ 0: There are more than 2 spelling errors
347
+ 1: There are 1-2 spelling errors
348
+ 2: All words are spelled correctly
349
+
350
+ language_identification : "The following sentence contains words in the following languages (check all that apply)"
351
+ 1: target
352
+ 2: english
353
+ 3: other
354
+ 4: target & english
355
+ 5: target & other
356
+ 6: english & other
357
+ 7: target & english & other
358
+ ```
359
+
360
+ ### Data Splits
361
+
362
+ |Language|Train|Dev|Test|
363
+ |:---:|:---:|:---:|:---:|
364
+ |af-ZA|11514|2033|2974|
365
+ |am-ET|11514|2033|2974|
366
+ |ar-SA|11514|2033|2974|
367
+ |az-AZ|11514|2033|2974|
368
+ |bn-BD|11514|2033|2974|
369
+ |ca-ES|11514|2033|2974|
370
+ |cy-GB|11514|2033|2974|
371
+ |da-DK|11514|2033|2974|
372
+ |de-DE|11514|2033|2974|
373
+ |el-GR|11514|2033|2974|
374
+ |en-US|11514|2033|2974|
375
+ |es-ES|11514|2033|2974|
376
+ |fa-IR|11514|2033|2974|
377
+ |fi-FI|11514|2033|2974|
378
+ |fr-FR|11514|2033|2974|
379
+ |he-IL|11514|2033|2974|
380
+ |hi-IN|11514|2033|2974|
381
+ |hu-HU|11514|2033|2974|
382
+ |hy-AM|11514|2033|2974|
383
+ |id-ID|11514|2033|2974|
384
+ |is-IS|11514|2033|2974|
385
+ |it-IT|11514|2033|2974|
386
+ |ja-JP|11514|2033|2974|
387
+ |jv-ID|11514|2033|2974|
388
+ |ka-GE|11514|2033|2974|
389
+ |km-KH|11514|2033|2974|
390
+ |kn-IN|11514|2033|2974|
391
+ |ko-KR|11514|2033|2974|
392
+ |lv-LV|11514|2033|2974|
393
+ |ml-IN|11514|2033|2974|
394
+ |mn-MN|11514|2033|2974|
395
+ |ms-MY|11514|2033|2974|
396
+ |my-MM|11514|2033|2974|
397
+ |nb-NO|11514|2033|2974|
398
+ |nl-NL|11514|2033|2974|
399
+ |pl-PL|11514|2033|2974|
400
+ |pt-PT|11514|2033|2974|
401
+ |ro-RO|11514|2033|2974|
402
+ |ru-RU|11514|2033|2974|
403
+ |sl-SL|11514|2033|2974|
404
+ |sq-AL|11514|2033|2974|
405
+ |sv-SE|11514|2033|2974|
406
+ |sw-KE|11514|2033|2974|
407
+ |ta-IN|11514|2033|2974|
408
+ |te-IN|11514|2033|2974|
409
+ |th-TH|11514|2033|2974|
410
+ |tl-PH|11514|2033|2974|
411
+ |tr-TR|11514|2033|2974|
412
+ |ur-PK|11514|2033|2974|
413
+ |vi-VN|11514|2033|2974|
414
+ |zh-CN|11514|2033|2974|
415
+ |zh-TW|11514|2033|2974|
416
+
417
+
418
+ ### Personal and Sensitive Information
419
+
420
+ The corpora is free of personal or sensitive information.
421
+
422
+ ## Additional Information
423
+
424
+ ### Dataset Curators
425
+
426
+ __MASSIVE__: Jack FitzGerald and Christopher Hench and Charith Peris and Scott Mackie and Kay Rottmann and Ana Sanchez and Aaron Nash and Liam Urbach and Vishesh Kakarala and Richa Singh and Swetha Ranganath and Laurie Crist and Misha Britan and Wouter Leeuwis and Gokhan Tur and Prem Natarajan.
427
+
428
+ __SLURP__: Bastianelli, Emanuele and Vanzo, Andrea and Swietojanski, Pawel and Rieser, Verena.
429
+
430
+ __Hugging Face Upload and Integration__: Labrak Yanis (Not affiliated with the original corpus)
431
+
432
+ ### Licensing Information
433
+
434
+ ```plain
435
+ Copyright Amazon.com Inc. or its affiliates.
436
+
437
+ Attribution 4.0 International
438
+
439
+ =======================================================================
440
+
441
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
442
+ does not provide legal services or legal advice. Distribution of
443
+ Creative Commons public licenses does not create a lawyer-client or
444
+ other relationship. Creative Commons makes its licenses and related
445
+ information available on an "as-is" basis. Creative Commons gives no
446
+ warranties regarding its licenses, any material licensed under their
447
+ terms and conditions, or any related information. Creative Commons
448
+ disclaims all liability for damages resulting from their use to the
449
+ fullest extent possible.
450
+
451
+ Using Creative Commons Public Licenses
452
+
453
+ Creative Commons public licenses provide a standard set of terms and
454
+ conditions that creators and other rights holders may use to share
455
+ original works of authorship and other material subject to copyright
456
+ and certain other rights specified in the public license below. The
457
+ following considerations are for informational purposes only, are not
458
+ exhaustive, and do not form part of our licenses.
459
+
460
+ Considerations for licensors: Our public licenses are
461
+ intended for use by those authorized to give the public
462
+ permission to use material in ways otherwise restricted by
463
+ copyright and certain other rights. Our licenses are
464
+ irrevocable. Licensors should read and understand the terms
465
+ and conditions of the license they choose before applying it.
466
+ Licensors should also secure all rights necessary before
467
+ applying our licenses so that the public can reuse the
468
+ material as expected. Licensors should clearly mark any
469
+ material not subject to the license. This includes other CC-
470
+ licensed material, or material used under an exception or
471
+ limitation to copyright. More considerations for licensors:
472
+ wiki.creativecommons.org/Considerations_for_licensors
473
+
474
+ Considerations for the public: By using one of our public
475
+ licenses, a licensor grants the public permission to use the
476
+ licensed material under specified terms and conditions. If
477
+ the licensor's permission is not necessary for any reason--for
478
+ example, because of any applicable exception or limitation to
479
+ copyright--then that use is not regulated by the license. Our
480
+ licenses grant only permissions under copyright and certain
481
+ other rights that a licensor has authority to grant. Use of
482
+ the licensed material may still be restricted for other
483
+ reasons, including because others have copyright or other
484
+ rights in the material. A licensor may make special requests,
485
+ such as asking that all changes be marked or described.
486
+ Although not required by our licenses, you are encouraged to
487
+ respect those requests where reasonable. More considerations
488
+ for the public:
489
+ wiki.creativecommons.org/Considerations_for_licensees
490
+
491
+ =======================================================================
492
+
493
+ Creative Commons Attribution 4.0 International Public License
494
+
495
+ By exercising the Licensed Rights (defined below), You accept and agree
496
+ to be bound by the terms and conditions of this Creative Commons
497
+ Attribution 4.0 International Public License ("Public License"). To the
498
+ extent this Public License may be interpreted as a contract, You are
499
+ granted the Licensed Rights in consideration of Your acceptance of
500
+ these terms and conditions, and the Licensor grants You such rights in
501
+ consideration of benefits the Licensor receives from making the
502
+ Licensed Material available under these terms and conditions.
503
+
504
+
505
+ Section 1 -- Definitions.
506
+
507
+ a. Adapted Material means material subject to Copyright and Similar
508
+ Rights that is derived from or based upon the Licensed Material
509
+ and in which the Licensed Material is translated, altered,
510
+ arranged, transformed, or otherwise modified in a manner requiring
511
+ permission under the Copyright and Similar Rights held by the
512
+ Licensor. For purposes of this Public License, where the Licensed
513
+ Material is a musical work, performance, or sound recording,
514
+ Adapted Material is always produced where the Licensed Material is
515
+ synched in timed relation with a moving image.
516
+
517
+ b. Adapter's License means the license You apply to Your Copyright
518
+ and Similar Rights in Your contributions to Adapted Material in
519
+ accordance with the terms and conditions of this Public License.
520
+
521
+ c. Copyright and Similar Rights means copyright and/or similar rights
522
+ closely related to copyright including, without limitation,
523
+ performance, broadcast, sound recording, and Sui Generis Database
524
+ Rights, without regard to how the rights are labeled or
525
+ categorized. For purposes of this Public License, the rights
526
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
527
+ Rights.
528
+
529
+ d. Effective Technological Measures means those measures that, in the
530
+ absence of proper authority, may not be circumvented under laws
531
+ fulfilling obligations under Article 11 of the WIPO Copyright
532
+ Treaty adopted on December 20, 1996, and/or similar international
533
+ agreements.
534
+
535
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
536
+ any other exception or limitation to Copyright and Similar Rights
537
+ that applies to Your use of the Licensed Material.
538
+
539
+ f. Licensed Material means the artistic or literary work, database,
540
+ or other material to which the Licensor applied this Public
541
+ License.
542
+
543
+ g. Licensed Rights means the rights granted to You subject to the
544
+ terms and conditions of this Public License, which are limited to
545
+ all Copyright and Similar Rights that apply to Your use of the
546
+ Licensed Material and that the Licensor has authority to license.
547
+
548
+ h. Licensor means the individual(s) or entity(ies) granting rights
549
+ under this Public License.
550
+
551
+ i. Share means to provide material to the public by any means or
552
+ process that requires permission under the Licensed Rights, such
553
+ as reproduction, public display, public performance, distribution,
554
+ dissemination, communication, or importation, and to make material
555
+ available to the public including in ways that members of the
556
+ public may access the material from a place and at a time
557
+ individually chosen by them.
558
+
559
+ j. Sui Generis Database Rights means rights other than copyright
560
+ resulting from Directive 96/9/EC of the European Parliament and of
561
+ the Council of 11 March 1996 on the legal protection of databases,
562
+ as amended and/or succeeded, as well as other essentially
563
+ equivalent rights anywhere in the world.
564
+
565
+ k. You means the individual or entity exercising the Licensed Rights
566
+ under this Public License. Your has a corresponding meaning.
567
+
568
+
569
+ Section 2 -- Scope.
570
+
571
+ a. License grant.
572
+
573
+ 1. Subject to the terms and conditions of this Public License,
574
+ the Licensor hereby grants You a worldwide, royalty-free,
575
+ non-sublicensable, non-exclusive, irrevocable license to
576
+ exercise the Licensed Rights in the Licensed Material to:
577
+
578
+ a. reproduce and Share the Licensed Material, in whole or
579
+ in part; and
580
+
581
+ b. produce, reproduce, and Share Adapted Material.
582
+
583
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
584
+ Exceptions and Limitations apply to Your use, this Public
585
+ License does not apply, and You do not need to comply with
586
+ its terms and conditions.
587
+
588
+ 3. Term. The term of this Public License is specified in Section
589
+ 6(a).
590
+
591
+ 4. Media and formats; technical modifications allowed. The
592
+ Licensor authorizes You to exercise the Licensed Rights in
593
+ all media and formats whether now known or hereafter created,
594
+ and to make technical modifications necessary to do so. The
595
+ Licensor waives and/or agrees not to assert any right or
596
+ authority to forbid You from making technical modifications
597
+ necessary to exercise the Licensed Rights, including
598
+ technical modifications necessary to circumvent Effective
599
+ Technological Measures. For purposes of this Public License,
600
+ simply making modifications authorized by this Section 2(a)
601
+ (4) never produces Adapted Material.
602
+
603
+ 5. Downstream recipients.
604
+
605
+ a. Offer from the Licensor -- Licensed Material. Every
606
+ recipient of the Licensed Material automatically
607
+ receives an offer from the Licensor to exercise the
608
+ Licensed Rights under the terms and conditions of this
609
+ Public License.
610
+
611
+ b. No downstream restrictions. You may not offer or impose
612
+ any additional or different terms or conditions on, or
613
+ apply any Effective Technological Measures to, the
614
+ Licensed Material if doing so restricts exercise of the
615
+ Licensed Rights by any recipient of the Licensed
616
+ Material.
617
+
618
+ 6. No endorsement. Nothing in this Public License constitutes or
619
+ may be construed as permission to assert or imply that You
620
+ are, or that Your use of the Licensed Material is, connected
621
+ with, or sponsored, endorsed, or granted official status by,
622
+ the Licensor or others designated to receive attribution as
623
+ provided in Section 3(a)(1)(A)(i).
624
+
625
+ b. Other rights.
626
+
627
+ 1. Moral rights, such as the right of integrity, are not
628
+ licensed under this Public License, nor are publicity,
629
+ privacy, and/or other similar personality rights; however, to
630
+ the extent possible, the Licensor waives and/or agrees not to
631
+ assert any such rights held by the Licensor to the limited
632
+ extent necessary to allow You to exercise the Licensed
633
+ Rights, but not otherwise.
634
+
635
+ 2. Patent and trademark rights are not licensed under this
636
+ Public License.
637
+
638
+ 3. To the extent possible, the Licensor waives any right to
639
+ collect royalties from You for the exercise of the Licensed
640
+ Rights, whether directly or through a collecting society
641
+ under any voluntary or waivable statutory or compulsory
642
+ licensing scheme. In all other cases the Licensor expressly
643
+ reserves any right to collect such royalties.
644
+
645
+
646
+ Section 3 -- License Conditions.
647
+
648
+ Your exercise of the Licensed Rights is expressly made subject to the
649
+ following conditions.
650
+
651
+ a. Attribution.
652
+
653
+ 1. If You Share the Licensed Material (including in modified
654
+ form), You must:
655
+
656
+ a. retain the following if it is supplied by the Licensor
657
+ with the Licensed Material:
658
+
659
+ i. identification of the creator(s) of the Licensed
660
+ Material and any others designated to receive
661
+ attribution, in any reasonable manner requested by
662
+ the Licensor (including by pseudonym if
663
+ designated);
664
+
665
+ ii. a copyright notice;
666
+
667
+ iii. a notice that refers to this Public License;
668
+
669
+ iv. a notice that refers to the disclaimer of
670
+ warranties;
671
+
672
+ v. a URI or hyperlink to the Licensed Material to the
673
+ extent reasonably practicable;
674
+
675
+ b. indicate if You modified the Licensed Material and
676
+ retain an indication of any previous modifications; and
677
+
678
+ c. indicate the Licensed Material is licensed under this
679
+ Public License, and include the text of, or the URI or
680
+ hyperlink to, this Public License.
681
+
682
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
683
+ reasonable manner based on the medium, means, and context in
684
+ which You Share the Licensed Material. For example, it may be
685
+ reasonable to satisfy the conditions by providing a URI or
686
+ hyperlink to a resource that includes the required
687
+ information.
688
+
689
+ 3. If requested by the Licensor, You must remove any of the
690
+ information required by Section 3(a)(1)(A) to the extent
691
+ reasonably practicable.
692
+
693
+ 4. If You Share Adapted Material You produce, the Adapter's
694
+ License You apply must not prevent recipients of the Adapted
695
+ Material from complying with this Public License.
696
+
697
+
698
+ Section 4 -- Sui Generis Database Rights.
699
+
700
+ Where the Licensed Rights include Sui Generis Database Rights that
701
+ apply to Your use of the Licensed Material:
702
+
703
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
704
+ to extract, reuse, reproduce, and Share all or a substantial
705
+ portion of the contents of the database;
706
+
707
+ b. if You include all or a substantial portion of the database
708
+ contents in a database in which You have Sui Generis Database
709
+ Rights, then the database in which You have Sui Generis Database
710
+ Rights (but not its individual contents) is Adapted Material; and
711
+
712
+ c. You must comply with the conditions in Section 3(a) if You Share
713
+ all or a substantial portion of the contents of the database.
714
+
715
+ For the avoidance of doubt, this Section 4 supplements and does not
716
+ replace Your obligations under this Public License where the Licensed
717
+ Rights include other Copyright and Similar Rights.
718
+
719
+
720
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
721
+
722
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
723
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
724
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
725
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
726
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
727
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
728
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
729
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
730
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
731
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
732
+
733
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
734
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
735
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
736
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
737
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
738
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
739
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
740
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
741
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
742
+
743
+ c. The disclaimer of warranties and limitation of liability provided
744
+ above shall be interpreted in a manner that, to the extent
745
+ possible, most closely approximates an absolute disclaimer and
746
+ waiver of all liability.
747
+
748
+
749
+ Section 6 -- Term and Termination.
750
+
751
+ a. This Public License applies for the term of the Copyright and
752
+ Similar Rights licensed here. However, if You fail to comply with
753
+ this Public License, then Your rights under this Public License
754
+ terminate automatically.
755
+
756
+ b. Where Your right to use the Licensed Material has terminated under
757
+ Section 6(a), it reinstates:
758
+
759
+ 1. automatically as of the date the violation is cured, provided
760
+ it is cured within 30 days of Your discovery of the
761
+ violation; or
762
+
763
+ 2. upon express reinstatement by the Licensor.
764
+
765
+ For the avoidance of doubt, this Section 6(b) does not affect any
766
+ right the Licensor may have to seek remedies for Your violations
767
+ of this Public License.
768
+
769
+ c. For the avoidance of doubt, the Licensor may also offer the
770
+ Licensed Material under separate terms or conditions or stop
771
+ distributing the Licensed Material at any time; however, doing so
772
+ will not terminate this Public License.
773
+
774
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
775
+ License.
776
+
777
+
778
+ Section 7 -- Other Terms and Conditions.
779
+
780
+ a. The Licensor shall not be bound by any additional or different
781
+ terms or conditions communicated by You unless expressly agreed.
782
+
783
+ b. Any arrangements, understandings, or agreements regarding the
784
+ Licensed Material not stated herein are separate from and
785
+ independent of the terms and conditions of this Public License.
786
+
787
+
788
+ Section 8 -- Interpretation.
789
+
790
+ a. For the avoidance of doubt, this Public License does not, and
791
+ shall not be interpreted to, reduce, limit, restrict, or impose
792
+ conditions on any use of the Licensed Material that could lawfully
793
+ be made without permission under this Public License.
794
+
795
+ b. To the extent possible, if any provision of this Public License is
796
+ deemed unenforceable, it shall be automatically reformed to the
797
+ minimum extent necessary to make it enforceable. If the provision
798
+ cannot be reformed, it shall be severed from this Public License
799
+ without affecting the enforceability of the remaining terms and
800
+ conditions.
801
+
802
+ c. No term or condition of this Public License will be waived and no
803
+ failure to comply consented to unless expressly agreed to by the
804
+ Licensor.
805
+
806
+ d. Nothing in this Public License constitutes or may be interpreted
807
+ as a limitation upon, or waiver of, any privileges and immunities
808
+ that apply to the Licensor or You, including from the legal
809
+ processes of any jurisdiction or authority.
810
+
811
+
812
+ =======================================================================
813
+
814
+ Creative Commons is not a party to its public licenses.
815
+ Notwithstanding, Creative Commons may elect to apply one of its public
816
+ licenses to material it publishes and in those instances will be
817
+ considered the “Licensor.” The text of the Creative Commons public
818
+ licenses is dedicated to the public domain under the CC0 Public Domain
819
+ Dedication. Except for the limited purpose of indicating that material
820
+ is shared under a Creative Commons public license or as otherwise
821
+ permitted by the Creative Commons policies published at
822
+ creativecommons.org/policies, Creative Commons does not authorize the
823
+ use of the trademark "Creative Commons" or any other trademark or logo
824
+ of Creative Commons without its prior written consent including,
825
+ without limitation, in connection with any unauthorized modifications
826
+ to any of its public licenses or any other arrangements,
827
+ understandings, or agreements concerning use of licensed material. For
828
+ the avoidance of doubt, this paragraph does not form part of the public
829
+ licenses.
830
+
831
+ Creative Commons may be contacted at creativecommons.org.
832
+ ```
833
+
834
+ ### Citation Information
835
+
836
+ Please cite the following papers when using this dataset.
837
+
838
+ ```latex
839
+ @misc{fitzgerald2022massive,
840
+ title={MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages},
841
+ author={Jack FitzGerald and Christopher Hench and Charith Peris and Scott Mackie and Kay Rottmann and Ana Sanchez and Aaron Nash and Liam Urbach and Vishesh Kakarala and Richa Singh and Swetha Ranganath and Laurie Crist and Misha Britan and Wouter Leeuwis and Gokhan Tur and Prem Natarajan},
842
+ year={2022},
843
+ eprint={2204.08582},
844
+ archivePrefix={arXiv},
845
+ primaryClass={cs.CL}
846
+ }
847
+
848
+ @inproceedings{bastianelli-etal-2020-slurp,
849
+ title = "{SLURP}: A Spoken Language Understanding Resource Package",
850
+ author = "Bastianelli, Emanuele and
851
+ Vanzo, Andrea and
852
+ Swietojanski, Pawel and
853
+ Rieser, Verena",
854
+ booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)",
855
+ month = nov,
856
+ year = "2020",
857
+ address = "Online",
858
+ publisher = "Association for Computational Linguistics",
859
+ url = "https://aclanthology.org/2020.emnlp-main.588",
860
+ doi = "10.18653/v1/2020.emnlp-main.588",
861
+ pages = "7252--7262",
862
+ abstract = "Spoken Language Understanding infers semantic meaning directly from audio data, and thus promises to reduce error propagation and misunderstandings in end-user applications. However, publicly available SLU resources are limited. In this paper, we release SLURP, a new SLU package containing the following: (1) A new challenging dataset in English spanning 18 domains, which is substantially bigger and linguistically more diverse than existing datasets; (2) Competitive baselines based on state-of-the-art NLU and ASR systems; (3) A new transparent metric for entity labelling which enables a detailed error analysis for identifying potential areas of improvement. SLURP is available at https://github.com/pswietojanski/slurp."
863
+ }
864
+ ```
massive.py ADDED
@@ -0,0 +1,660 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+
3
+ """MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages"""
4
+
5
+ import json
6
+ import datasets
7
+
8
+ logger = datasets.logging.get_logger(__name__)
9
+
10
+ _DESCRIPTION = """\
11
+ MASSIVE is a parallel dataset of > 1M utterances across 51 languages with annotations
12
+ for the Natural Language Understanding tasks of intent prediction and slot annotation.
13
+ Utterances span 60 intents and include 55 slot types. MASSIVE was created by localizing
14
+ the SLURP dataset, composed of general Intelligent Voice Assistant single-shot interactions.
15
+ """
16
+
17
+ _CITATION = """\
18
+ @misc{fitzgerald2022massive,
19
+ title={MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages},
20
+ author={Jack FitzGerald and Christopher Hench and Charith Peris and Scott Mackie and Kay Rottmann and Ana Sanchez and Aaron Nash and Liam Urbach and Vishesh Kakarala and Richa Singh and Swetha Ranganath and Laurie Crist and Misha Britan and Wouter Leeuwis and Gokhan Tur and Prem Natarajan},
21
+ year={2022},
22
+ eprint={2204.08582},
23
+ archivePrefix={arXiv},
24
+ primaryClass={cs.CL}
25
+ }
26
+ \
27
+ @inproceedings{bastianelli-etal-2020-slurp,
28
+ title = "{SLURP}: A Spoken Language Understanding Resource Package",
29
+ author = "Bastianelli, Emanuele and
30
+ Vanzo, Andrea and
31
+ Swietojanski, Pawel and
32
+ Rieser, Verena",
33
+ booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)",
34
+ month = nov,
35
+ year = "2020",
36
+ address = "Online",
37
+ publisher = "Association for Computational Linguistics",
38
+ url = "https://aclanthology.org/2020.emnlp-main.588",
39
+ doi = "10.18653/v1/2020.emnlp-main.588",
40
+ pages = "7252--7262",
41
+ abstract = "Spoken Language Understanding infers semantic meaning directly from audio data, and thus promises to reduce error propagation and misunderstandings in end-user applications. However, publicly available SLU resources are limited. In this paper, we release SLURP, a new SLU package containing the following: (1) A new challenging dataset in English spanning 18 domains, which is substantially bigger and linguistically more diverse than existing datasets; (2) Competitive baselines based on state-of-the-art NLU and ASR systems; (3) A new transparent metric for entity labelling which enables a detailed error analysis for identifying potential areas of improvement. SLURP is available at https://github.com/pswietojanski/slurp."
42
+ }
43
+ """
44
+
45
+ _LICENSE = """\
46
+ Copyright Amazon.com Inc. or its affiliates.
47
+
48
+ Attribution 4.0 International
49
+
50
+ =======================================================================
51
+
52
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
53
+ does not provide legal services or legal advice. Distribution of
54
+ Creative Commons public licenses does not create a lawyer-client or
55
+ other relationship. Creative Commons makes its licenses and related
56
+ information available on an "as-is" basis. Creative Commons gives no
57
+ warranties regarding its licenses, any material licensed under their
58
+ terms and conditions, or any related information. Creative Commons
59
+ disclaims all liability for damages resulting from their use to the
60
+ fullest extent possible.
61
+
62
+ Using Creative Commons Public Licenses
63
+
64
+ Creative Commons public licenses provide a standard set of terms and
65
+ conditions that creators and other rights holders may use to share
66
+ original works of authorship and other material subject to copyright
67
+ and certain other rights specified in the public license below. The
68
+ following considerations are for informational purposes only, are not
69
+ exhaustive, and do not form part of our licenses.
70
+
71
+ Considerations for licensors: Our public licenses are
72
+ intended for use by those authorized to give the public
73
+ permission to use material in ways otherwise restricted by
74
+ copyright and certain other rights. Our licenses are
75
+ irrevocable. Licensors should read and understand the terms
76
+ and conditions of the license they choose before applying it.
77
+ Licensors should also secure all rights necessary before
78
+ applying our licenses so that the public can reuse the
79
+ material as expected. Licensors should clearly mark any
80
+ material not subject to the license. This includes other CC-
81
+ licensed material, or material used under an exception or
82
+ limitation to copyright. More considerations for licensors:
83
+ wiki.creativecommons.org/Considerations_for_licensors
84
+
85
+ Considerations for the public: By using one of our public
86
+ licenses, a licensor grants the public permission to use the
87
+ licensed material under specified terms and conditions. If
88
+ the licensor's permission is not necessary for any reason--for
89
+ example, because of any applicable exception or limitation to
90
+ copyright--then that use is not regulated by the license. Our
91
+ licenses grant only permissions under copyright and certain
92
+ other rights that a licensor has authority to grant. Use of
93
+ the licensed material may still be restricted for other
94
+ reasons, including because others have copyright or other
95
+ rights in the material. A licensor may make special requests,
96
+ such as asking that all changes be marked or described.
97
+ Although not required by our licenses, you are encouraged to
98
+ respect those requests where reasonable. More considerations
99
+ for the public:
100
+ wiki.creativecommons.org/Considerations_for_licensees
101
+
102
+ =======================================================================
103
+
104
+ Creative Commons Attribution 4.0 International Public License
105
+
106
+ By exercising the Licensed Rights (defined below), You accept and agree
107
+ to be bound by the terms and conditions of this Creative Commons
108
+ Attribution 4.0 International Public License ("Public License"). To the
109
+ extent this Public License may be interpreted as a contract, You are
110
+ granted the Licensed Rights in consideration of Your acceptance of
111
+ these terms and conditions, and the Licensor grants You such rights in
112
+ consideration of benefits the Licensor receives from making the
113
+ Licensed Material available under these terms and conditions.
114
+
115
+
116
+ Section 1 -- Definitions.
117
+
118
+ a. Adapted Material means material subject to Copyright and Similar
119
+ Rights that is derived from or based upon the Licensed Material
120
+ and in which the Licensed Material is translated, altered,
121
+ arranged, transformed, or otherwise modified in a manner requiring
122
+ permission under the Copyright and Similar Rights held by the
123
+ Licensor. For purposes of this Public License, where the Licensed
124
+ Material is a musical work, performance, or sound recording,
125
+ Adapted Material is always produced where the Licensed Material is
126
+ synched in timed relation with a moving image.
127
+
128
+ b. Adapter's License means the license You apply to Your Copyright
129
+ and Similar Rights in Your contributions to Adapted Material in
130
+ accordance with the terms and conditions of this Public License.
131
+
132
+ c. Copyright and Similar Rights means copyright and/or similar rights
133
+ closely related to copyright including, without limitation,
134
+ performance, broadcast, sound recording, and Sui Generis Database
135
+ Rights, without regard to how the rights are labeled or
136
+ categorized. For purposes of this Public License, the rights
137
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
138
+ Rights.
139
+
140
+ d. Effective Technological Measures means those measures that, in the
141
+ absence of proper authority, may not be circumvented under laws
142
+ fulfilling obligations under Article 11 of the WIPO Copyright
143
+ Treaty adopted on December 20, 1996, and/or similar international
144
+ agreements.
145
+
146
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
147
+ any other exception or limitation to Copyright and Similar Rights
148
+ that applies to Your use of the Licensed Material.
149
+
150
+ f. Licensed Material means the artistic or literary work, database,
151
+ or other material to which the Licensor applied this Public
152
+ License.
153
+
154
+ g. Licensed Rights means the rights granted to You subject to the
155
+ terms and conditions of this Public License, which are limited to
156
+ all Copyright and Similar Rights that apply to Your use of the
157
+ Licensed Material and that the Licensor has authority to license.
158
+
159
+ h. Licensor means the individual(s) or entity(ies) granting rights
160
+ under this Public License.
161
+
162
+ i. Share means to provide material to the public by any means or
163
+ process that requires permission under the Licensed Rights, such
164
+ as reproduction, public display, public performance, distribution,
165
+ dissemination, communication, or importation, and to make material
166
+ available to the public including in ways that members of the
167
+ public may access the material from a place and at a time
168
+ individually chosen by them.
169
+
170
+ j. Sui Generis Database Rights means rights other than copyright
171
+ resulting from Directive 96/9/EC of the European Parliament and of
172
+ the Council of 11 March 1996 on the legal protection of databases,
173
+ as amended and/or succeeded, as well as other essentially
174
+ equivalent rights anywhere in the world.
175
+
176
+ k. You means the individual or entity exercising the Licensed Rights
177
+ under this Public License. Your has a corresponding meaning.
178
+
179
+
180
+ Section 2 -- Scope.
181
+
182
+ a. License grant.
183
+
184
+ 1. Subject to the terms and conditions of this Public License,
185
+ the Licensor hereby grants You a worldwide, royalty-free,
186
+ non-sublicensable, non-exclusive, irrevocable license to
187
+ exercise the Licensed Rights in the Licensed Material to:
188
+
189
+ a. reproduce and Share the Licensed Material, in whole or
190
+ in part; and
191
+
192
+ b. produce, reproduce, and Share Adapted Material.
193
+
194
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
195
+ Exceptions and Limitations apply to Your use, this Public
196
+ License does not apply, and You do not need to comply with
197
+ its terms and conditions.
198
+
199
+ 3. Term. The term of this Public License is specified in Section
200
+ 6(a).
201
+
202
+ 4. Media and formats; technical modifications allowed. The
203
+ Licensor authorizes You to exercise the Licensed Rights in
204
+ all media and formats whether now known or hereafter created,
205
+ and to make technical modifications necessary to do so. The
206
+ Licensor waives and/or agrees not to assert any right or
207
+ authority to forbid You from making technical modifications
208
+ necessary to exercise the Licensed Rights, including
209
+ technical modifications necessary to circumvent Effective
210
+ Technological Measures. For purposes of this Public License,
211
+ simply making modifications authorized by this Section 2(a)
212
+ (4) never produces Adapted Material.
213
+
214
+ 5. Downstream recipients.
215
+
216
+ a. Offer from the Licensor -- Licensed Material. Every
217
+ recipient of the Licensed Material automatically
218
+ receives an offer from the Licensor to exercise the
219
+ Licensed Rights under the terms and conditions of this
220
+ Public License.
221
+
222
+ b. No downstream restrictions. You may not offer or impose
223
+ any additional or different terms or conditions on, or
224
+ apply any Effective Technological Measures to, the
225
+ Licensed Material if doing so restricts exercise of the
226
+ Licensed Rights by any recipient of the Licensed
227
+ Material.
228
+
229
+ 6. No endorsement. Nothing in this Public License constitutes or
230
+ may be construed as permission to assert or imply that You
231
+ are, or that Your use of the Licensed Material is, connected
232
+ with, or sponsored, endorsed, or granted official status by,
233
+ the Licensor or others designated to receive attribution as
234
+ provided in Section 3(a)(1)(A)(i).
235
+
236
+ b. Other rights.
237
+
238
+ 1. Moral rights, such as the right of integrity, are not
239
+ licensed under this Public License, nor are publicity,
240
+ privacy, and/or other similar personality rights; however, to
241
+ the extent possible, the Licensor waives and/or agrees not to
242
+ assert any such rights held by the Licensor to the limited
243
+ extent necessary to allow You to exercise the Licensed
244
+ Rights, but not otherwise.
245
+
246
+ 2. Patent and trademark rights are not licensed under this
247
+ Public License.
248
+
249
+ 3. To the extent possible, the Licensor waives any right to
250
+ collect royalties from You for the exercise of the Licensed
251
+ Rights, whether directly or through a collecting society
252
+ under any voluntary or waivable statutory or compulsory
253
+ licensing scheme. In all other cases the Licensor expressly
254
+ reserves any right to collect such royalties.
255
+
256
+
257
+ Section 3 -- License Conditions.
258
+
259
+ Your exercise of the Licensed Rights is expressly made subject to the
260
+ following conditions.
261
+
262
+ a. Attribution.
263
+
264
+ 1. If You Share the Licensed Material (including in modified
265
+ form), You must:
266
+
267
+ a. retain the following if it is supplied by the Licensor
268
+ with the Licensed Material:
269
+
270
+ i. identification of the creator(s) of the Licensed
271
+ Material and any others designated to receive
272
+ attribution, in any reasonable manner requested by
273
+ the Licensor (including by pseudonym if
274
+ designated);
275
+
276
+ ii. a copyright notice;
277
+
278
+ iii. a notice that refers to this Public License;
279
+
280
+ iv. a notice that refers to the disclaimer of
281
+ warranties;
282
+
283
+ v. a URI or hyperlink to the Licensed Material to the
284
+ extent reasonably practicable;
285
+
286
+ b. indicate if You modified the Licensed Material and
287
+ retain an indication of any previous modifications; and
288
+
289
+ c. indicate the Licensed Material is licensed under this
290
+ Public License, and include the text of, or the URI or
291
+ hyperlink to, this Public License.
292
+
293
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
294
+ reasonable manner based on the medium, means, and context in
295
+ which You Share the Licensed Material. For example, it may be
296
+ reasonable to satisfy the conditions by providing a URI or
297
+ hyperlink to a resource that includes the required
298
+ information.
299
+
300
+ 3. If requested by the Licensor, You must remove any of the
301
+ information required by Section 3(a)(1)(A) to the extent
302
+ reasonably practicable.
303
+
304
+ 4. If You Share Adapted Material You produce, the Adapter's
305
+ License You apply must not prevent recipients of the Adapted
306
+ Material from complying with this Public License.
307
+
308
+
309
+ Section 4 -- Sui Generis Database Rights.
310
+
311
+ Where the Licensed Rights include Sui Generis Database Rights that
312
+ apply to Your use of the Licensed Material:
313
+
314
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
315
+ to extract, reuse, reproduce, and Share all or a substantial
316
+ portion of the contents of the database;
317
+
318
+ b. if You include all or a substantial portion of the database
319
+ contents in a database in which You have Sui Generis Database
320
+ Rights, then the database in which You have Sui Generis Database
321
+ Rights (but not its individual contents) is Adapted Material; and
322
+
323
+ c. You must comply with the conditions in Section 3(a) if You Share
324
+ all or a substantial portion of the contents of the database.
325
+
326
+ For the avoidance of doubt, this Section 4 supplements and does not
327
+ replace Your obligations under this Public License where the Licensed
328
+ Rights include other Copyright and Similar Rights.
329
+
330
+
331
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
332
+
333
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
334
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
335
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
336
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
337
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
338
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
339
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
340
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
341
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
342
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
343
+
344
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
345
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
346
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
347
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
348
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
349
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
350
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
351
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
352
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
353
+
354
+ c. The disclaimer of warranties and limitation of liability provided
355
+ above shall be interpreted in a manner that, to the extent
356
+ possible, most closely approximates an absolute disclaimer and
357
+ waiver of all liability.
358
+
359
+
360
+ Section 6 -- Term and Termination.
361
+
362
+ a. This Public License applies for the term of the Copyright and
363
+ Similar Rights licensed here. However, if You fail to comply with
364
+ this Public License, then Your rights under this Public License
365
+ terminate automatically.
366
+
367
+ b. Where Your right to use the Licensed Material has terminated under
368
+ Section 6(a), it reinstates:
369
+
370
+ 1. automatically as of the date the violation is cured, provided
371
+ it is cured within 30 days of Your discovery of the
372
+ violation; or
373
+
374
+ 2. upon express reinstatement by the Licensor.
375
+
376
+ For the avoidance of doubt, this Section 6(b) does not affect any
377
+ right the Licensor may have to seek remedies for Your violations
378
+ of this Public License.
379
+
380
+ c. For the avoidance of doubt, the Licensor may also offer the
381
+ Licensed Material under separate terms or conditions or stop
382
+ distributing the Licensed Material at any time; however, doing so
383
+ will not terminate this Public License.
384
+
385
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
386
+ License.
387
+
388
+
389
+ Section 7 -- Other Terms and Conditions.
390
+
391
+ a. The Licensor shall not be bound by any additional or different
392
+ terms or conditions communicated by You unless expressly agreed.
393
+
394
+ b. Any arrangements, understandings, or agreements regarding the
395
+ Licensed Material not stated herein are separate from and
396
+ independent of the terms and conditions of this Public License.
397
+
398
+
399
+ Section 8 -- Interpretation.
400
+
401
+ a. For the avoidance of doubt, this Public License does not, and
402
+ shall not be interpreted to, reduce, limit, restrict, or impose
403
+ conditions on any use of the Licensed Material that could lawfully
404
+ be made without permission under this Public License.
405
+
406
+ b. To the extent possible, if any provision of this Public License is
407
+ deemed unenforceable, it shall be automatically reformed to the
408
+ minimum extent necessary to make it enforceable. If the provision
409
+ cannot be reformed, it shall be severed from this Public License
410
+ without affecting the enforceability of the remaining terms and
411
+ conditions.
412
+
413
+ c. No term or condition of this Public License will be waived and no
414
+ failure to comply consented to unless expressly agreed to by the
415
+ Licensor.
416
+
417
+ d. Nothing in this Public License constitutes or may be interpreted
418
+ as a limitation upon, or waiver of, any privileges and immunities
419
+ that apply to the Licensor or You, including from the legal
420
+ processes of any jurisdiction or authority.
421
+
422
+
423
+ =======================================================================
424
+
425
+ Creative Commons is not a party to its public licenses.
426
+ Notwithstanding, Creative Commons may elect to apply one of its public
427
+ licenses to material it publishes and in those instances will be
428
+ considered the “Licensor.” The text of the Creative Commons public
429
+ licenses is dedicated to the public domain under the CC0 Public Domain
430
+ Dedication. Except for the limited purpose of indicating that material
431
+ is shared under a Creative Commons public license or as otherwise
432
+ permitted by the Creative Commons policies published at
433
+ creativecommons.org/policies, Creative Commons does not authorize the
434
+ use of the trademark "Creative Commons" or any other trademark or logo
435
+ of Creative Commons without its prior written consent including,
436
+ without limitation, in connection with any unauthorized modifications
437
+ to any of its public licenses or any other arrangements,
438
+ understandings, or agreements concerning use of licensed material. For
439
+ the avoidance of doubt, this paragraph does not form part of the public
440
+ licenses.
441
+
442
+ Creative Commons may be contacted at creativecommons.org.
443
+ """
444
+ # version 1.0
445
+ _URL0 = "https://amazon-massive-nlu-dataset.s3.amazonaws.com/amazon-massive-dataset-1.0.tar.gz"
446
+ # version 1.1
447
+ _URL1 = "https://amazon-massive-nlu-dataset.s3.amazonaws.com/amazon-massive-dataset-1.1.tar.gz"
448
+
449
+ # version 1.0
450
+ _LANGUAGES0 = ['af-ZA', 'am-ET', 'ar-SA', 'az-AZ', 'bn-BD', 'cy-GB', 'da-DK', 'de-DE', 'el-GR', 'en-US',
451
+ 'es-ES', 'fa-IR', 'fi-FI', 'fr-FR', 'he-IL', 'hi-IN', 'hu-HU', 'hy-AM', 'id-ID', 'is-IS',
452
+ 'it-IT', 'ja-JP', 'jv-ID', 'ka-GE', 'km-KH', 'kn-IN', 'ko-KR', 'lv-LV', 'ml-IN', 'mn-MN',
453
+ 'ms-MY', 'my-MM', 'nb-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ro-RO', 'ru-RU', 'sl-SL', 'sq-AL',
454
+ 'sv-SE', 'sw-KE', 'ta-IN', 'te-IN', 'th-TH', 'tl-PH', 'tr-TR', 'ur-PK', 'vi-VN', 'zh-CN',
455
+ 'zh-TW']
456
+
457
+ # version 1.1 ('ca-ES' added)
458
+ _LANGUAGES1 = sorted(_LANGUAGES0 + ['ca-ES'])
459
+
460
+ _SCENARIOS = ['social', 'transport', 'calendar', 'play', 'news', 'datetime', 'recommendation', 'email',
461
+ 'iot', 'general', 'audio', 'lists', 'qa', 'cooking', 'takeaway', 'music', 'alarm', 'weather']
462
+
463
+ _INTENTS = ['datetime_query', 'iot_hue_lightchange', 'transport_ticket', 'takeaway_query', 'qa_stock',
464
+ 'general_greet', 'recommendation_events', 'music_dislikeness', 'iot_wemo_off', 'cooking_recipe',
465
+ 'qa_currency', 'transport_traffic', 'general_quirky', 'weather_query', 'audio_volume_up',
466
+ 'email_addcontact', 'takeaway_order', 'email_querycontact', 'iot_hue_lightup',
467
+ 'recommendation_locations', 'play_audiobook', 'lists_createoradd', 'news_query',
468
+ 'alarm_query', 'iot_wemo_on', 'general_joke', 'qa_definition', 'social_query',
469
+ 'music_settings', 'audio_volume_other', 'calendar_remove', 'iot_hue_lightdim',
470
+ 'calendar_query', 'email_sendemail', 'iot_cleaning', 'audio_volume_down',
471
+ 'play_radio', 'cooking_query', 'datetime_convert', 'qa_maths', 'iot_hue_lightoff',
472
+ 'iot_hue_lighton', 'transport_query', 'music_likeness', 'email_query', 'play_music',
473
+ 'audio_volume_mute', 'social_post', 'alarm_set', 'qa_factoid', 'calendar_set',
474
+ 'play_game', 'alarm_remove', 'lists_remove', 'transport_taxi', 'recommendation_movies',
475
+ 'iot_coffee', 'music_query', 'play_podcasts', 'lists_query']
476
+
477
+ _ALL = "all"
478
+
479
+
480
+ class MassiveConfig(datasets.BuilderConfig):
481
+ """BuilderConfig for MASSIVE."""
482
+
483
+ def __init__(self, dataset_version=None, *args, **kwargs):
484
+ """BuilderConfig for MASSIVE.
485
+ Args:
486
+ **kwargs: keyword arguments forwarded to super.
487
+ """
488
+ super(MassiveConfig, self).__init__(*args, **kwargs)
489
+ self.dataset_version = dataset_version if dataset_version else "1.0"
490
+ self.data_url = _URL0 if self.dataset_version == "1.0" else _URL1
491
+
492
+
493
+ class MASSIVE(datasets.GeneratorBasedBuilder):
494
+ """MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages"""
495
+
496
+ # All individual locale datasets are served from the latest version.
497
+ BUILDER_CONFIGS = [
498
+ MassiveConfig(
499
+ name = name,
500
+ dataset_version = '1.1',
501
+ version = datasets.Version("1.0.0"),
502
+ description = f"The MASSIVE v1.1 corpora for {name}",
503
+ ) for name in _LANGUAGES1
504
+ ]
505
+ # Version 1.0
506
+ BUILDER_CONFIGS.append(MassiveConfig(
507
+ name = _ALL,
508
+ dataset_version = '1.0',
509
+ version = datasets.Version("1.0.0"),
510
+ description = f"The MASSIVE v1.0 corpora for entire corpus",
511
+ )
512
+ )
513
+ # Version 1.1
514
+ BUILDER_CONFIGS.append(MassiveConfig(
515
+ name = _ALL + '_1.1', # Append '_1.1' to 'all' in order to get the latest version.
516
+ dataset_version = '1.1',
517
+ version = datasets.Version("1.0.0"),
518
+ description = f"The MASSIVE v1.1 corpora for entire corpus",
519
+ )
520
+ )
521
+
522
+ DEFAULT_CONFIG_NAME = _ALL
523
+
524
+ def _info(self):
525
+ return datasets.DatasetInfo(
526
+ description=_DESCRIPTION,
527
+ features=datasets.Features(
528
+ {
529
+ "id": datasets.Value("string"),
530
+ "locale": datasets.Value("string"),
531
+ "partition": datasets.Value("string"),
532
+ "scenario": datasets.features.ClassLabel(names=_SCENARIOS),
533
+ "intent": datasets.features.ClassLabel(names=_INTENTS),
534
+ "utt": datasets.Value("string"),
535
+ "annot_utt": datasets.Value("string"),
536
+ "worker_id": datasets.Value("string"),
537
+ "slot_method": datasets.Sequence({
538
+ "slot": datasets.Value("string"),
539
+ "method": datasets.Value("string"),
540
+ }),
541
+ "judgments": datasets.Sequence({
542
+ "worker_id": datasets.Value("string"),
543
+ "intent_score": datasets.Value("int8"),
544
+ "slots_score": datasets.Value("int8"),
545
+ "grammar_score": datasets.Value("int8"),
546
+ "spelling_score": datasets.Value("int8"),
547
+ "language_identification": datasets.Value("string"),
548
+ }),
549
+ },
550
+ ),
551
+ supervised_keys=None,
552
+ homepage="https://github.com/alexa/massive",
553
+ citation=_CITATION,
554
+ license=_LICENSE,
555
+ )
556
+
557
+ def _split_generators(self, dl_manager):
558
+
559
+ archive = dl_manager.download(self.config.data_url)
560
+ return [
561
+ datasets.SplitGenerator(
562
+ name=datasets.Split.TRAIN,
563
+ gen_kwargs={
564
+ "files": dl_manager.iter_archive(archive),
565
+ "split": "train",
566
+ "lang": self.config.name,
567
+ }
568
+ ),
569
+ datasets.SplitGenerator(
570
+ name=datasets.Split.VALIDATION,
571
+ gen_kwargs={
572
+ "files": dl_manager.iter_archive(archive),
573
+ "split": "dev",
574
+ "lang": self.config.name,
575
+ }
576
+ ),
577
+ datasets.SplitGenerator(
578
+ name=datasets.Split.TEST,
579
+ gen_kwargs={
580
+ "files": dl_manager.iter_archive(archive),
581
+ "split": "test",
582
+ "lang": self.config.name,
583
+ }
584
+ ),
585
+ ]
586
+
587
+ def _generate_examples(self, files, split, lang):
588
+
589
+ key_ = 0
590
+
591
+ if lang == "all_1.1":
592
+ lang = _LANGUAGES1.copy()
593
+ elif lang == "all":
594
+ lang = _LANGUAGES0.copy()
595
+ else:
596
+ lang = [lang]
597
+
598
+ logger.info("⏳ Generating examples from = %s", ", ".join(lang))
599
+
600
+ for path, f in files:
601
+
602
+ l = path.split("/")[-1].split(".")[0]
603
+
604
+ if not lang:
605
+ break
606
+ elif l in lang:
607
+ lang.remove(l)
608
+ else:
609
+ continue
610
+
611
+ # Read the file
612
+ lines = f.read().decode(encoding="utf-8").split("\n")
613
+
614
+ for line in lines:
615
+
616
+ data = json.loads(line)
617
+
618
+ if data["partition"] != split:
619
+ continue
620
+
621
+ # Slot method
622
+ if "slot_method" in data:
623
+ slot_method = [
624
+ {
625
+ "slot": s["slot"],
626
+ "method": s["method"],
627
+ } for s in data["slot_method"]
628
+ ]
629
+ else:
630
+ slot_method = []
631
+
632
+ # Judgments
633
+ if "judgments" in data:
634
+ judgments = [
635
+ {
636
+ "worker_id": j["worker_id"],
637
+ "intent_score": j["intent_score"],
638
+ "slots_score": j["slots_score"],
639
+ "grammar_score": j["grammar_score"],
640
+ "spelling_score": j["spelling_score"],
641
+ "language_identification": j["language_identification"] if "language_identification" in j else "target",
642
+ } for j in data["judgments"]
643
+ ]
644
+ else:
645
+ judgments = []
646
+
647
+ yield key_, {
648
+ "id": data["id"],
649
+ "locale": data["locale"],
650
+ "partition": data["partition"],
651
+ "scenario": data["scenario"],
652
+ "intent": data["intent"],
653
+ "utt": data["utt"],
654
+ "annot_utt": data["annot_utt"],
655
+ "worker_id": data["worker_id"],
656
+ "slot_method": slot_method,
657
+ "judgments": judgments,
658
+ }
659
+
660
+ key_ += 1
test_massive.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+
3
+ source = "AmazonScience/massive"
4
+
5
+ #Individual locales are downloaded from version 1.1 which has Catalan (ca-ES) added in
6
+ dataset = load_dataset(source, "en-US", download_mode="force_redownload")
7
+ print(dataset)
8
+ print(dataset["train"][0])
9
+
10
+ #Using version 1.1 which has Catalan (ca-ES) added in
11
+ dataset = load_dataset(source, "all_v1.1", download_mode="force_redownload")
12
+ print(dataset)
13
+ print(dataset["train"][0])
14
+
15
+ #Using version 1.0
16
+ dataset = load_dataset(source, "all", download_mode="force_redownload")
17
+ print(dataset)
18
+ print(dataset["train"][0])