chae-won-kim
commited on
Update MultiDialog.py
Browse files- MultiDialog.py +2 -3
MultiDialog.py
CHANGED
@@ -82,7 +82,6 @@ class Multidialog(datasets.GeneratorBasedBuilder):
|
|
82 |
)
|
83 |
|
84 |
def _split_generators(self, dl_manager):
|
85 |
-
splits_to_subsets = self.config.subsets_to_download
|
86 |
splits = (self.config.name,)
|
87 |
|
88 |
n_archives = {
|
@@ -96,7 +95,7 @@ class Multidialog(datasets.GeneratorBasedBuilder):
|
|
96 |
# 2. prepare sharded archives with audio files
|
97 |
audio_archives_urls = {
|
98 |
split: [
|
99 |
-
_AUDIO_ARCHIVE_URL.format(subset=
|
100 |
for i in range(n_archives[split][0])
|
101 |
]
|
102 |
for split in splits
|
@@ -112,7 +111,7 @@ class Multidialog(datasets.GeneratorBasedBuilder):
|
|
112 |
# 3. prepare sharded metadata csv files
|
113 |
meta_urls = {
|
114 |
split: [
|
115 |
-
_META_URL.format(subset=
|
116 |
for i in range(n_archives[split][1])
|
117 |
]
|
118 |
for split in splits
|
|
|
82 |
)
|
83 |
|
84 |
def _split_generators(self, dl_manager):
|
|
|
85 |
splits = (self.config.name,)
|
86 |
|
87 |
n_archives = {
|
|
|
95 |
# 2. prepare sharded archives with audio files
|
96 |
audio_archives_urls = {
|
97 |
split: [
|
98 |
+
_AUDIO_ARCHIVE_URL.format(subset=split, archive_id=i)
|
99 |
for i in range(n_archives[split][0])
|
100 |
]
|
101 |
for split in splits
|
|
|
111 |
# 3. prepare sharded metadata csv files
|
112 |
meta_urls = {
|
113 |
split: [
|
114 |
+
_META_URL.format(subset=split, archiv_id=i)
|
115 |
for i in range(n_archives[split][1])
|
116 |
]
|
117 |
for split in splits
|