Georgios Spithourakis commited on
Commit ·
937819b
1
Parent(s): 495c959
Update evi.py
Browse files
evi.py
CHANGED
|
@@ -45,7 +45,7 @@ _HOMEPAGE_URL = "https://arxiv.org/abs/2204.13496"
|
|
| 45 |
|
| 46 |
_AUDIO_DATA_URL = "https://poly-public-data.s3.eu-west-2.amazonaws.com/evi-paper/audios.zip" # noqa
|
| 47 |
|
| 48 |
-
_VERSION = datasets.Version("0.0.
|
| 49 |
|
| 50 |
|
| 51 |
class EviConfig(datasets.BuilderConfig):
|
|
@@ -78,9 +78,7 @@ def _build_config(name):
|
|
| 78 |
class Evi(datasets.GeneratorBasedBuilder):
|
| 79 |
|
| 80 |
DEFAULT_WRITER_BATCH_SIZE = 1000
|
| 81 |
-
BUILDER_CONFIGS = [
|
| 82 |
-
_build_config(name) for name in _ALL_CONFIGS
|
| 83 |
-
]
|
| 84 |
|
| 85 |
def _info(self):
|
| 86 |
task_templates = None
|
|
@@ -114,7 +112,11 @@ class Evi(datasets.GeneratorBasedBuilder):
|
|
| 114 |
)
|
| 115 |
|
| 116 |
def _split_generators(self, dl_manager):
|
| 117 |
-
langs =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
# audio_path = dl_manager.download_and_extract(
|
| 120 |
# self.config.audio_data_url
|
|
@@ -137,7 +139,7 @@ class Evi(datasets.GeneratorBasedBuilder):
|
|
| 137 |
}
|
| 138 |
return [
|
| 139 |
datasets.SplitGenerator(
|
| 140 |
-
name=datasets.Split.
|
| 141 |
gen_kwargs={
|
| 142 |
"audio_paths": lang2audio_path,
|
| 143 |
"text_paths": lang2text_path,
|
|
@@ -182,7 +184,7 @@ class Evi(datasets.GeneratorBasedBuilder):
|
|
| 182 |
# if __name__ == '__main__':
|
| 183 |
# d = Evi(name='fr-FR')
|
| 184 |
# d.download_and_prepare()
|
| 185 |
-
# d = d.as_dataset(datasets.Split.
|
| 186 |
# print(d)
|
| 187 |
# for e in d:
|
| 188 |
# print(e)
|
|
|
|
| 45 |
|
| 46 |
_AUDIO_DATA_URL = "https://poly-public-data.s3.eu-west-2.amazonaws.com/evi-paper/audios.zip" # noqa
|
| 47 |
|
| 48 |
+
_VERSION = datasets.Version("0.0.10", "")
|
| 49 |
|
| 50 |
|
| 51 |
class EviConfig(datasets.BuilderConfig):
|
|
|
|
| 78 |
class Evi(datasets.GeneratorBasedBuilder):
|
| 79 |
|
| 80 |
DEFAULT_WRITER_BATCH_SIZE = 1000
|
| 81 |
+
BUILDER_CONFIGS = [_build_config(name) for name in _ALL_CONFIGS + ["all"]]
|
|
|
|
|
|
|
| 82 |
|
| 83 |
def _info(self):
|
| 84 |
task_templates = None
|
|
|
|
| 112 |
)
|
| 113 |
|
| 114 |
def _split_generators(self, dl_manager):
|
| 115 |
+
langs = (
|
| 116 |
+
_ALL_CONFIGS
|
| 117 |
+
if self.config.name == "all"
|
| 118 |
+
else [self.config.name]
|
| 119 |
+
)
|
| 120 |
|
| 121 |
# audio_path = dl_manager.download_and_extract(
|
| 122 |
# self.config.audio_data_url
|
|
|
|
| 139 |
}
|
| 140 |
return [
|
| 141 |
datasets.SplitGenerator(
|
| 142 |
+
name=datasets.Split.TEST,
|
| 143 |
gen_kwargs={
|
| 144 |
"audio_paths": lang2audio_path,
|
| 145 |
"text_paths": lang2text_path,
|
|
|
|
| 184 |
# if __name__ == '__main__':
|
| 185 |
# d = Evi(name='fr-FR')
|
| 186 |
# d.download_and_prepare()
|
| 187 |
+
# d = d.as_dataset(datasets.Split.TEST)
|
| 188 |
# print(d)
|
| 189 |
# for e in d:
|
| 190 |
# print(e)
|