mnansary commited on
Commit ·
8771e8d
1
Parent(s): 3c79b25
data
Browse files- cvbn.py +3 -6
- data/train.tsv +3 -0
- dd.ipynb +0 -0
cvbn.py
CHANGED
|
@@ -23,11 +23,9 @@ import datasets
|
|
| 23 |
import requests
|
| 24 |
from datasets.utils.py_utils import size_str
|
| 25 |
from huggingface_hub import HfApi, HfFolder
|
| 26 |
-
from huggingface_hub import hf_hub_url
|
| 27 |
|
| 28 |
from .languages import LANGUAGES
|
| 29 |
from .release_stats import STATS
|
| 30 |
-
|
| 31 |
_CITATION = """\
|
| 32 |
@inproceedings{commonvoice:2020,
|
| 33 |
author = {Ardila, R. and Branson, M. and Davis, K. and Henretty, M. and Kohler, M. and Meyer, J. and Morais, R. and Saunders, L. and Tyers, F. M. and Weber, G.},
|
|
@@ -44,6 +42,7 @@ _LICENSE = "https://creativecommons.org/publicdomain/zero/1.0/"
|
|
| 44 |
|
| 45 |
_API_URL = "https://commonvoice.mozilla.org/api/v1"
|
| 46 |
|
|
|
|
| 47 |
|
| 48 |
class CommonVoiceConfig(datasets.BuilderConfig):
|
| 49 |
"""BuilderConfig for CommonVoice."""
|
|
@@ -162,9 +161,7 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
-
|
| 166 |
-
local_train_tsv = dl_manager.extract(train_tsv_path_arch_path) if not dl_manager.is_streaming else None
|
| 167 |
-
#train_tsv_local_path="train.tsv"
|
| 168 |
|
| 169 |
if self.config.version < datasets.Version("5.0.0"):
|
| 170 |
path_to_data = ""
|
|
@@ -179,7 +176,7 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
| 179 |
gen_kwargs={
|
| 180 |
"local_extracted_archive": local_extracted_archive,
|
| 181 |
"archive_iterator": dl_manager.iter_archive(archive_path),
|
| 182 |
-
"metadata_filepath": os.path.join(
|
| 183 |
"path_to_clips": path_to_clips,
|
| 184 |
"mode":"train",
|
| 185 |
},
|
|
|
|
| 23 |
import requests
|
| 24 |
from datasets.utils.py_utils import size_str
|
| 25 |
from huggingface_hub import HfApi, HfFolder
|
|
|
|
| 26 |
|
| 27 |
from .languages import LANGUAGES
|
| 28 |
from .release_stats import STATS
|
|
|
|
| 29 |
_CITATION = """\
|
| 30 |
@inproceedings{commonvoice:2020,
|
| 31 |
author = {Ardila, R. and Branson, M. and Davis, K. and Henretty, M. and Kohler, M. and Meyer, J. and Morais, R. and Saunders, L. and Tyers, F. M. and Weber, G.},
|
|
|
|
| 42 |
|
| 43 |
_API_URL = "https://commonvoice.mozilla.org/api/v1"
|
| 44 |
|
| 45 |
+
_TRAIN_XZ="https://drive.google.com/uc?id=1KYTCAi9J25ngzxq22mCrKTEVg0i3ZVil"
|
| 46 |
|
| 47 |
class CommonVoiceConfig(datasets.BuilderConfig):
|
| 48 |
"""BuilderConfig for CommonVoice."""
|
|
|
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
+
train_tsv=dl_manager.download(_TRAIN_XZ)
|
|
|
|
|
|
|
| 165 |
|
| 166 |
if self.config.version < datasets.Version("5.0.0"):
|
| 167 |
path_to_data = ""
|
|
|
|
| 176 |
gen_kwargs={
|
| 177 |
"local_extracted_archive": local_extracted_archive,
|
| 178 |
"archive_iterator": dl_manager.iter_archive(archive_path),
|
| 179 |
+
"metadata_filepath": os.path.join(train_tsv,"train.tsv"),
|
| 180 |
"path_to_clips": path_to_clips,
|
| 181 |
"mode":"train",
|
| 182 |
},
|
data/train.tsv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5993baed1c1c6919f94bf34cf40332fa584bfa6cadb750e3e1f4c28944a4c4d9
|
| 3 |
+
size 71873411
|
dd.ipynb
ADDED
|
File without changes
|