mnansary commited on
Commit ·
35d89f4
1
Parent(s): b86c335
data
Browse files
cvbn.py
CHANGED
|
@@ -159,6 +159,10 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
| 159 |
archive_path = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template))
|
| 160 |
local_extracted_archive = dl_manager.extract(archive_path) if not dl_manager.is_streaming else None
|
| 161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
if self.config.version < datasets.Version("5.0.0"):
|
| 163 |
path_to_data = ""
|
| 164 |
else:
|
|
@@ -172,7 +176,7 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
| 172 |
gen_kwargs={
|
| 173 |
"local_extracted_archive": local_extracted_archive,
|
| 174 |
"archive_iterator": dl_manager.iter_archive(archive_path),
|
| 175 |
-
"metadata_filepath":
|
| 176 |
"path_to_clips": path_to_clips,
|
| 177 |
"mode":"train",
|
| 178 |
},
|
|
|
|
| 159 |
archive_path = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template))
|
| 160 |
local_extracted_archive = dl_manager.extract(archive_path) if not dl_manager.is_streaming else None
|
| 161 |
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
train_tsv_path=dl_manager.download("https://huggingface.co/datasets/bengaliAI/cvbn/raw/main/data/train.tsv")
|
| 165 |
+
|
| 166 |
if self.config.version < datasets.Version("5.0.0"):
|
| 167 |
path_to_data = ""
|
| 168 |
else:
|
|
|
|
| 176 |
gen_kwargs={
|
| 177 |
"local_extracted_archive": local_extracted_archive,
|
| 178 |
"archive_iterator": dl_manager.iter_archive(archive_path),
|
| 179 |
+
"metadata_filepath": train_tsv_path,
|
| 180 |
"path_to_clips": path_to_clips,
|
| 181 |
"mode":"train",
|
| 182 |
},
|