kunkuk commited on
Commit ·
101966f
1
Parent(s): 428c73a
Changed VoxLingua107.py
Browse files- VoxLingua107.py +7 -4
VoxLingua107.py
CHANGED
|
@@ -145,10 +145,12 @@ def _languages():
|
|
| 145 |
class VoxLingua(datasets.GeneratorBasedBuilder):
|
| 146 |
BUILDER_CONFIGS = [
|
| 147 |
VoxLinguaConfig(
|
| 148 |
-
name =
|
| 149 |
description=textwrap.dedent(
|
| 150 |
-
"""
|
| 151 |
),
|
|
|
|
|
|
|
| 152 |
features=datasets.Features(
|
| 153 |
{
|
| 154 |
"file": datasets.Value("string"),
|
|
@@ -160,9 +162,10 @@ class VoxLingua(datasets.GeneratorBasedBuilder):
|
|
| 160 |
),
|
| 161 |
supervised_keys=("file", "label"),
|
| 162 |
url="http://bark.phon.ioc.ee/voxlingua107/",
|
| 163 |
-
data_url="http://bark.phon.ioc.ee/voxlingua107/{language}"
|
| 164 |
)
|
| 165 |
-
|
|
|
|
| 166 |
|
| 167 |
BUILDER_CONFIG_CLASS = VoxLinguaConfig
|
| 168 |
|
|
|
|
| 145 |
class VoxLingua(datasets.GeneratorBasedBuilder):
|
| 146 |
BUILDER_CONFIGS = [
|
| 147 |
VoxLinguaConfig(
|
| 148 |
+
name = language,
|
| 149 |
description=textwrap.dedent(
|
| 150 |
+
""" tbd """
|
| 151 |
),
|
| 152 |
+
shuffled=False,
|
| 153 |
+
deduplicated=False,
|
| 154 |
features=datasets.Features(
|
| 155 |
{
|
| 156 |
"file": datasets.Value("string"),
|
|
|
|
| 162 |
),
|
| 163 |
supervised_keys=("file", "label"),
|
| 164 |
url="http://bark.phon.ioc.ee/voxlingua107/",
|
| 165 |
+
data_url="http://bark.phon.ioc.ee/voxlingua107/{language}.zip"
|
| 166 |
)
|
| 167 |
+
for language in _languages()
|
| 168 |
+
]
|
| 169 |
|
| 170 |
BUILDER_CONFIG_CLASS = VoxLinguaConfig
|
| 171 |
|