Datasets:
Faton Rekathati
commited on
Commit
·
4abd87b
1
Parent(s):
9a4b2d3
edit metaurl assignment
Browse files
rixvox.py
CHANGED
@@ -102,14 +102,13 @@ class Rixvox(datasets.GeneratorBasedBuilder):
|
|
102 |
def _split_generators(self, dl_manager):
|
103 |
# If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
|
104 |
splits = ["train", "dev", "test"]
|
|
|
105 |
|
106 |
if self.config.name == "all":
|
107 |
archive_urls = {
|
108 |
split: [_DATA_URL.format(split=split, shard_idx=idx) for idx in range(0, _N_SHARDS[split])]
|
109 |
for split in splits
|
110 |
}
|
111 |
-
meta_urls = {split: [_META_URL.format(split=split)] for split in splits}
|
112 |
-
|
113 |
else:
|
114 |
archive_urls = {
|
115 |
self.config.name: [
|
@@ -117,6 +116,7 @@ class Rixvox(datasets.GeneratorBasedBuilder):
|
|
117 |
for idx in range(0, _N_SHARDS[self.config.name])
|
118 |
]
|
119 |
}
|
|
|
120 |
meta_urls = {self.config.name: _META_URL[self.config.name]}
|
121 |
|
122 |
archive_paths = dl_manager.download(archive_urls)
|
|
|
102 |
def _split_generators(self, dl_manager):
|
103 |
# If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
|
104 |
splits = ["train", "dev", "test"]
|
105 |
+
meta_urls = {split: [_META_URL.format(split=split)] for split in splits}
|
106 |
|
107 |
if self.config.name == "all":
|
108 |
archive_urls = {
|
109 |
split: [_DATA_URL.format(split=split, shard_idx=idx) for idx in range(0, _N_SHARDS[split])]
|
110 |
for split in splits
|
111 |
}
|
|
|
|
|
112 |
else:
|
113 |
archive_urls = {
|
114 |
self.config.name: [
|
|
|
116 |
for idx in range(0, _N_SHARDS[self.config.name])
|
117 |
]
|
118 |
}
|
119 |
+
# Choose single split
|
120 |
meta_urls = {self.config.name: _META_URL[self.config.name]}
|
121 |
|
122 |
archive_paths = dl_manager.download(archive_urls)
|