Update dataset_2.py
Browse files- dataset_2.py +3 -22
dataset_2.py
CHANGED
@@ -40,7 +40,7 @@ in the e-banking domain, associated with spoken examples in 14 diverse language
|
|
40 |
"""
|
41 |
|
42 |
_ALL_CONFIGS = sorted([
|
43 |
-
"
|
44 |
])
|
45 |
|
46 |
|
@@ -48,7 +48,7 @@ _DESCRIPTION = "MINDS-14 is a dataset for the intent detection task with spoken
|
|
48 |
|
49 |
_HOMEPAGE_URL = "https://arxiv.org/abs/2104.08524"
|
50 |
|
51 |
-
_DATA_URL = "https://
|
52 |
|
53 |
|
54 |
class Minds14Config(datasets.BuilderConfig):
|
@@ -90,25 +90,7 @@ class Minds14(datasets.GeneratorBasedBuilder):
|
|
90 |
"path": datasets.Value("string"),
|
91 |
"audio": datasets.Audio(sampling_rate=8_000),
|
92 |
"transcription": datasets.Value("string"),
|
93 |
-
"english_transcription": datasets.Value("string"),
|
94 |
-
"intent_class": datasets.ClassLabel(
|
95 |
-
names=[
|
96 |
-
"abroad",
|
97 |
-
"address",
|
98 |
-
"app_error",
|
99 |
-
"atm_limit",
|
100 |
-
"balance",
|
101 |
-
"business_loan",
|
102 |
-
"card_issues",
|
103 |
-
"cash_deposit",
|
104 |
-
"direct_debit",
|
105 |
-
"freeze",
|
106 |
-
"high_value_payment",
|
107 |
-
"joint_account",
|
108 |
-
"latest_transactions",
|
109 |
-
"pay_bill",
|
110 |
-
]
|
111 |
-
),
|
112 |
"lang_id": datasets.ClassLabel(names=langs),
|
113 |
}
|
114 |
)
|
@@ -166,7 +148,6 @@ class Minds14(datasets.GeneratorBasedBuilder):
|
|
166 |
"audio": file_path,
|
167 |
"transcription": transcription,
|
168 |
"english_transcription": english_transcription,
|
169 |
-
"intent_class": intent_class.lower(),
|
170 |
"lang_id": _ALL_CONFIGS.index(lang),
|
171 |
}
|
172 |
key += 1
|
|
|
40 |
"""
|
41 |
|
42 |
_ALL_CONFIGS = sorted([
|
43 |
+
"en-US"
|
44 |
])
|
45 |
|
46 |
|
|
|
48 |
|
49 |
_HOMEPAGE_URL = "https://arxiv.org/abs/2104.08524"
|
50 |
|
51 |
+
_DATA_URL = "https://asr-1258129568.cos.ap-shanghai.myqcloud.com/MInDS-14.zip"
|
52 |
|
53 |
|
54 |
class Minds14Config(datasets.BuilderConfig):
|
|
|
90 |
"path": datasets.Value("string"),
|
91 |
"audio": datasets.Audio(sampling_rate=8_000),
|
92 |
"transcription": datasets.Value("string"),
|
93 |
+
"english_transcription": datasets.Value("string"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
"lang_id": datasets.ClassLabel(names=langs),
|
95 |
}
|
96 |
)
|
|
|
148 |
"audio": file_path,
|
149 |
"transcription": transcription,
|
150 |
"english_transcription": english_transcription,
|
|
|
151 |
"lang_id": _ALL_CONFIGS.index(lang),
|
152 |
}
|
153 |
key += 1
|