Datasets:
Commit
·
74d54a4
1
Parent(s):
603cfa6
Update amazon_massive_intent.py
Browse files- amazon_massive_intent.py +3 -3
amazon_massive_intent.py
CHANGED
|
@@ -14,8 +14,8 @@ _DESCRIPTION = """\
|
|
| 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 |
-
ARCHIVE_PATH = f"{os.path.dirname(__file__)}/amazon-massive-dataset-1.0.tar.gz"
|
| 18 |
-
|
| 19 |
|
| 20 |
_LANGUAGES = {
|
| 21 |
"af": "af-ZA",
|
|
@@ -169,7 +169,7 @@ class MASSIVE(datasets.GeneratorBasedBuilder):
|
|
| 169 |
def _split_generators(self, dl_manager):
|
| 170 |
|
| 171 |
# path = dl_manager.download_and_extract(_URL)
|
| 172 |
-
|
| 173 |
files = dl_manager.iter_archive(ARCHIVE_PATH)
|
| 174 |
|
| 175 |
return [
|
|
|
|
| 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 |
+
# ARCHIVE_PATH = f"{os.path.dirname(__file__)}/amazon-massive-dataset-1.0.tar.gz"
|
| 18 |
+
_URL = "https://huggingface.co/datasets/mteb/amazon_massive_intent/raw/main/amazon-massive-dataset-1.0.tar.gz"
|
| 19 |
|
| 20 |
_LANGUAGES = {
|
| 21 |
"af": "af-ZA",
|
|
|
|
| 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 [
|