Datasets:
mteb
/

Modalities:
Text
Formats:
json
Libraries:
Datasets
Dask
lm commited on
Commit
f1214a1
1 Parent(s): 072a486

fast loading

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
amazon_massive_intent.py DELETED
@@ -1,219 +0,0 @@
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
- import os
8
-
9
- logger = datasets.logging.get_logger(__name__)
10
-
11
- _DESCRIPTION = """\
12
- MASSIVE is a parallel dataset of > 1M utterances across 51 languages with annotations
13
- for the Natural Language Understanding tasks of intent prediction and slot annotation.
14
- Utterances span 60 intents and include 55 slot types. MASSIVE was created by localizing
15
- the SLURP dataset, composed of general Intelligent Voice Assistant single-shot interactions.
16
- """
17
- _URL = "amazon-massive-dataset-1.0.tar.gz"
18
-
19
-
20
- _LANGUAGES = {
21
- "af": "af-ZA",
22
- "am": "am-ET",
23
- "ar": "ar-SA",
24
- "az": "az-AZ",
25
- "bn": "bn-BD",
26
- "cy": "cy-GB",
27
- "da": "da-DK",
28
- "de": "de-DE",
29
- "el": "el-GR",
30
- "en": "en-US",
31
- "es": "es-ES",
32
- "fa": "fa-IR",
33
- "fi": "fi-FI",
34
- "fr": "fr-FR",
35
- "he": "he-IL",
36
- "hi": "hi-IN",
37
- "hu": "hu-HU",
38
- "hy": "hy-AM",
39
- "id": "id-ID",
40
- "is": "is-IS",
41
- "it": "it-IT",
42
- "ja": "ja-JP",
43
- "jv": "jv-ID",
44
- "ka": "ka-GE",
45
- "km": "km-KH",
46
- "kn": "kn-IN",
47
- "ko": "ko-KR",
48
- "lv": "lv-LV",
49
- "ml": "ml-IN",
50
- "mn": "mn-MN",
51
- "ms": "ms-MY",
52
- "my": "my-MM",
53
- "nb": "nb-NO",
54
- "nl": "nl-NL",
55
- "pl": "pl-PL",
56
- "pt": "pt-PT",
57
- "ro": "ro-RO",
58
- "ru": "ru-RU",
59
- "sl": "sl-SL",
60
- "sq": "sq-AL",
61
- "sv": "sv-SE",
62
- "sw": "sw-KE",
63
- "ta": "ta-IN",
64
- "te": "te-IN",
65
- "th": "th-TH",
66
- "tl": "tl-PH",
67
- "tr": "tr-TR",
68
- "ur": "ur-PK",
69
- "vi": "vi-VN",
70
- "zh-CN": "zh-CN",
71
- "zh-TW": "zh-TW",
72
- }
73
-
74
- _INTENTS = [
75
- "datetime_query",
76
- "iot_hue_lightchange",
77
- "transport_ticket",
78
- "takeaway_query",
79
- "qa_stock",
80
- "general_greet",
81
- "recommendation_events",
82
- "music_dislikeness",
83
- "iot_wemo_off",
84
- "cooking_recipe",
85
- "qa_currency",
86
- "transport_traffic",
87
- "general_quirky",
88
- "weather_query",
89
- "audio_volume_up",
90
- "email_addcontact",
91
- "takeaway_order",
92
- "email_querycontact",
93
- "iot_hue_lightup",
94
- "recommendation_locations",
95
- "play_audiobook",
96
- "lists_createoradd",
97
- "news_query",
98
- "alarm_query",
99
- "iot_wemo_on",
100
- "general_joke",
101
- "qa_definition",
102
- "social_query",
103
- "music_settings",
104
- "audio_volume_other",
105
- "calendar_remove",
106
- "iot_hue_lightdim",
107
- "calendar_query",
108
- "email_sendemail",
109
- "iot_cleaning",
110
- "audio_volume_down",
111
- "play_radio",
112
- "cooking_query",
113
- "datetime_convert",
114
- "qa_maths",
115
- "iot_hue_lightoff",
116
- "iot_hue_lighton",
117
- "transport_query",
118
- "music_likeness",
119
- "email_query",
120
- "play_music",
121
- "audio_volume_mute",
122
- "social_post",
123
- "alarm_set",
124
- "qa_factoid",
125
- "calendar_set",
126
- "play_game",
127
- "alarm_remove",
128
- "lists_remove",
129
- "transport_taxi",
130
- "recommendation_movies",
131
- "iot_coffee",
132
- "music_query",
133
- "play_podcasts",
134
- "lists_query",
135
- ]
136
-
137
-
138
- class MASSIVE(datasets.GeneratorBasedBuilder):
139
- """MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages"""
140
-
141
- BUILDER_CONFIGS = [
142
- datasets.BuilderConfig(
143
- name=name,
144
- version=datasets.Version("1.0.0"),
145
- description=f"The MASSIVE corpora for {name}",
146
- )
147
- for name in _LANGUAGES.keys()
148
- ]
149
-
150
- DEFAULT_CONFIG_NAME = "en"
151
-
152
- def _info(self):
153
- return datasets.DatasetInfo(
154
- description=_DESCRIPTION,
155
- features=datasets.Features(
156
- {
157
- "id": datasets.Value("string"),
158
- "label": datasets.features.ClassLabel(names=_INTENTS),
159
- "label_text": datasets.Value("string"),
160
- "text": datasets.Value("string"),
161
- },
162
- ),
163
- supervised_keys=None,
164
- homepage="https://github.com/alexa/massive",
165
- citation="_CITATION",
166
- license="_LICENSE",
167
- )
168
-
169
- def _split_generators(self, dl_manager):
170
-
171
- # path = dl_manager.download_and_extract(_URL)
172
- archive_path = dl_manager.download(_URL)
173
- files = dl_manager.iter_archive(archive_path)
174
-
175
- return [
176
- datasets.SplitGenerator(
177
- name=datasets.Split.TRAIN,
178
- gen_kwargs={
179
- "files": files,
180
- "split": "train",
181
- "lang": self.config.name,
182
- },
183
- ),
184
- datasets.SplitGenerator(
185
- name=datasets.Split.VALIDATION,
186
- gen_kwargs={
187
- "files": files,
188
- "split": "dev",
189
- "lang": self.config.name,
190
- },
191
- ),
192
- datasets.SplitGenerator(
193
- name=datasets.Split.TEST,
194
- gen_kwargs={
195
- "files": files,
196
- "split": "test",
197
- "lang": self.config.name,
198
- },
199
- ),
200
- ]
201
-
202
- def _generate_examples(self, files, split, lang):
203
- filepath = "1.0/data/" + _LANGUAGES[lang] + ".jsonl"
204
- logger.info("⏳ Generating examples from = %s", filepath)
205
- for path, f in files:
206
- if path == filepath:
207
- lines = f.readlines()
208
- key_ = 0
209
- for line in lines:
210
- data = json.loads(line)
211
- if data["partition"] != split:
212
- continue
213
- yield key_, {
214
- "id": data["id"],
215
- "label": data["intent"],
216
- "label_text": data["intent"],
217
- "text": data["utt"],
218
- }
219
- key_ += 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
amazon-massive-dataset-1.0.tar.gz → test/af.json.gz RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ac5d4790f662c1b91a5807cb61add41be66f9abb39138edbc57887523a8dffcc
3
- size 39519418
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df845d32438465cabf85adaeb11bcf5dac0580cfefcd995c81dea8bc4a2d66b6
3
+ size 57189
test/am.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f8a521b8a90dd37c56c76ef8f5ec864470daaa91065a9c382849fe999f49f33
3
+ size 69488
test/ar.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08eb25c15d7b4d7430e746da81a552c480819a15875b3002df164459f3f6ad31
3
+ size 63572
test/az.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e5dbd5c896ea922f17d78fca3b6c46eba7d928227785d8b4902566a23875c71
3
+ size 60683
test/bn.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:447ba7af8e71b0892d2ec27006b2a2e77622edc2601a7aead3a4f4baa54a3256
3
+ size 70994
test/cy.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4541108dc40b033c8b65a9ae444a48d09982751a0cd8c38967cb1b3e2da1df7b
3
+ size 58041
test/da.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4dd57efd35da3a98a8e6d17f2774dc74318064efdadd503b5b9a25bf0df2d2b
3
+ size 55162
test/de.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:257abf60a72b94b254f944a1aad3dcd5844b2716f8cb85721f777d42dce123d6
3
+ size 59567
test/el.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03d4f4fdc68e68428e19292afaf2b9805aed94c3b8dc3ca89cf6f1243a4503af
3
+ size 76739
test/en.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dd692a9c188f395956b0534b70486c8ed959fd6d7e50d26d419ff169d213894
3
+ size 54111
test/es.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:249959dae94bc7ec0d26bbdb0d60bc48c005ffecf2d4218e8a5e506181310d71
3
+ size 58090
test/fa.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc4e65aaedfe9949f3e6ca8b018057b9cd78073e949e8392d242baf64352b1c2
3
+ size 68138
test/fi.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d568ab5b5df92082ba477bc480f938dedf5c16e06b9fde15f1b9a6b5880cdd1
3
+ size 57417
test/fr.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3540a7f7cec2936900b5458786afcb76d6698cf3fe0a804cd3ae64224abd277
3
+ size 60443
test/he.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4547aac0c79cfb161233944ec35f162477b34233e5543a5de4afbaad9fa66493
3
+ size 61904
test/hi.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d5cdf273638aec039bc025130ffac000d33d58c9e96c908cc51444da524a8b0
3
+ size 73166
test/hu.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0aac051f3335448193b3c82df9e4cfe075e870948215d2bab7810d2f8c87e501
3
+ size 62154
test/hy.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:824ca1098f8fc2ca5a50b15da141647cc9a4046e25ede30ef1c38d27a8206244
3
+ size 71774
test/id.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d6ea586ec5041347da7d4a239370fa0f606b1ab9c7e8300f93b1dabb80f9662
3
+ size 54069
test/is.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9bda7a5ca00c95d7ac7c7ba2151bc3fd24dc983b7430916da02e332093197b9
3
+ size 60387
test/it.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5126ac87446fa0fea896486fa74ffcb9b3403f205e0bef47f8f32f17778ea2ff
3
+ size 55070
test/ja.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5ac309a0f50398c536bbc91ca6f3101788cd9fce72b4095e19ee74591f28544
3
+ size 64808
test/jv.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6481b576446d29483e3bd80ad13a98495ea2b742db2c485e6667a68dfadadcdb
3
+ size 54372
test/ka.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:932fe66a12f14834357271e434c3e0bc2cd7280689a4cf8b1c89252d02f289f0
3
+ size 65192
test/km.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6801e1f1808913a42995317789b6c51da9e5c946c3e2ad3b0e8fef22c67abed4
3
+ size 69146
test/kn.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbd5a4a6db0b84a1d4aae66afbb61534424571b780c5691d9eea3d1fc3af8c95
3
+ size 75034
test/ko.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:279dbcf9ef1b4558d911fea98eb59e270aa9f83b7715c53ed62e3ebc18f7f338
3
+ size 61313
test/lv.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68d356d3a597c4dcc9f2a8961785752a33f0ba89af51a52d0b53d4b2d934146d
3
+ size 60259
test/ml.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1bb481f22aee97a78a862367e3f53243fec5146e32d60384a785719052cc8b7
3
+ size 78053
test/mn.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97892fc31b97b4ba7466d1e7180d1e20c564b96fa51b8831b29bda8c3b2215d7
3
+ size 70977
test/ms.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c05da8844b03203bf0f626934d49115d0268b323346ae94f709db9f494beca5
3
+ size 54776
test/my.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51694bd0b39b2675c572d2bd9188501ac57ef628e03b0b113411b27b3248c956
3
+ size 79327
test/nb.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f347462f98e2abe11ae0cae467f3dbd92ab0b2d36615eb8c318bf35274ff488
3
+ size 55471
test/nl.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:966786de57f58e20e28e5d8d6695ff0bb55f65f6e03aa412f97ba07296f69c73
3
+ size 58322
test/pl.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f5a1f40bd903c636c50c61b80ad90711b3e82fedb7a59ed5672813e4cf5b876
3
+ size 58908
test/pt.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92bea54fdc61c83208c30adb8de51f916a94d0fc34683e27d6079c911b92f470
3
+ size 57631
test/ro.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c283a9a3eea63da509c8ecdd56095d0fe5685736d0f853f8f57f2b42c48e5af
3
+ size 59165
test/ru.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:231fff953f9539224d5af0c5042e68b09c09e259fe30e3543694fe4182054c28
3
+ size 73361
test/sl.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd21dfef6c7efc69e68f98347cac5df8193e0f0517b4b9c6324668d2909abb96
3
+ size 56929
test/sq.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87bee7d9a63d6506d4d8ff898b6291f3155a92e97becbea6484b5b8f4899eea7
3
+ size 58319
test/sv.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a2e139bd6fa5745b4c1ebe7475ad80358981bbd4b0c9191601b142030760566
3
+ size 55933
test/sw.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f05cd800f24b121f73a262460994725eeaee3bcda322d780b42080239396fd6
3
+ size 54858
test/ta.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1bf1536560aa04b77a082d8bf0abfb89f42fdcd946e3b7446713c4f42be75cf
3
+ size 74703
test/te.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4e7695dfe37214da0280eaf3d8d4b39b8c5f21e4ed52dc08997f19e714e03de
3
+ size 77930
test/th.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:654b7c1f93dee45eb52f86c1018267c9446ce8f08e608bc502d15881c04b9803
3
+ size 69936
test/tl.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cbfc5d733aa724c5fdec15a8e0eac8dfce6b4e4a432f205e77b22f273c7c683
3
+ size 57494
test/tr.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90c4a1b8b23df300ef02544f2111e329d76fd16a997588af96c98ccf15240a87
3
+ size 59196
test/ur.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fea98b40c0f2b755c192b810ca6320e1d45b444c66578cae7011c620a16e829
3
+ size 71118
test/vi.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c38e27e416a5f3baa0b5f57affc8f4a52071751f0e5cfaaaadff6b45f2f9ac62
3
+ size 63780