Commit
•
ebdefc1
1
Parent(s):
3bd30b5
Update loading script
Browse files
vivos.py
CHANGED
@@ -42,11 +42,12 @@ _HOMEPAGE = "https://doi.org/10.5281/zenodo.7068130"
|
|
42 |
|
43 |
_LICENSE = "CC BY-NC-SA 4.0"
|
44 |
|
|
|
45 |
_DATA_URL = "https://zenodo.org/record/7068130/files/vivos.tar.gz"
|
46 |
|
47 |
_PROMPTS_URLS = {
|
48 |
-
"train": "
|
49 |
-
"test": "
|
50 |
}
|
51 |
|
52 |
|
@@ -89,7 +90,7 @@ class VivosDataset(datasets.GeneratorBasedBuilder):
|
|
89 |
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs
|
90 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
91 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
92 |
-
prompts_paths = dl_manager.
|
93 |
archive = dl_manager.download(_DATA_URL)
|
94 |
train_dir = "vivos/train"
|
95 |
test_dir = "vivos/test"
|
|
|
42 |
|
43 |
_LICENSE = "CC BY-NC-SA 4.0"
|
44 |
|
45 |
+
# Source data: "https://zenodo.org/record/7068130/files/vivos.tar.gz"
|
46 |
_DATA_URL = "https://zenodo.org/record/7068130/files/vivos.tar.gz"
|
47 |
|
48 |
_PROMPTS_URLS = {
|
49 |
+
"train": "data/prompts-train.txt.gz",
|
50 |
+
"test": "data/prompts-test.txt.gz",
|
51 |
}
|
52 |
|
53 |
|
|
|
90 |
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs
|
91 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
92 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
93 |
+
prompts_paths = dl_manager.download_and_extract(_PROMPTS_URLS)
|
94 |
archive = dl_manager.download(_DATA_URL)
|
95 |
train_dir = "vivos/train"
|
96 |
test_dir = "vivos/test"
|