Le Viet Hoang
commited on
Commit
·
92dcd94
1
Parent(s):
67e6cc8
fix
Browse files
VBVLSP.py
CHANGED
|
@@ -35,6 +35,26 @@ _TRANSCRIPT_URL = _BASE_URL + "transcript/{split}.tsv"
|
|
| 35 |
class CommonVoice(datasets.GeneratorBasedBuilder):
|
| 36 |
DEFAULT_WRITER_BATCH_SIZE = 1000
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
def _split_generators(self, dl_manager):
|
| 39 |
splits = ("train", "test", "validation")
|
| 40 |
audio_url = _AUDIO_URL
|
|
|
|
| 35 |
class CommonVoice(datasets.GeneratorBasedBuilder):
|
| 36 |
DEFAULT_WRITER_BATCH_SIZE = 1000
|
| 37 |
|
| 38 |
+
def _info(self):
|
| 39 |
+
description = ("""
|
| 40 |
+
|
| 41 |
+
"""
|
| 42 |
+
)
|
| 43 |
+
features = datasets.Features(
|
| 44 |
+
{
|
| 45 |
+
"file_path": datasets.Value("string"),
|
| 46 |
+
"audio": datasets.features.Audio(sampling_rate=48_000),
|
| 47 |
+
"script": datasets.Value("string"),
|
| 48 |
+
}
|
| 49 |
+
)
|
| 50 |
+
|
| 51 |
+
return datasets.DatasetInfo(
|
| 52 |
+
description=description,
|
| 53 |
+
features=features,
|
| 54 |
+
supervised_keys=None,
|
| 55 |
+
version=self.config.version,
|
| 56 |
+
)
|
| 57 |
+
|
| 58 |
def _split_generators(self, dl_manager):
|
| 59 |
splits = ("train", "test", "validation")
|
| 60 |
audio_url = _AUDIO_URL
|