Update app.py
Browse files
app.py
CHANGED
@@ -14,15 +14,15 @@ _CITATION = """
|
|
14 |
@inproceedings{}
|
15 |
"""
|
16 |
|
17 |
-
_HOMEPAGE = "
|
18 |
|
19 |
-
_LICENSE = "
|
20 |
|
21 |
_ASR_LANGUAGES = [
|
22 |
"hy"
|
23 |
]
|
24 |
_ASR_ACCENTED_LANGUAGES = [
|
25 |
-
"
|
26 |
]
|
27 |
|
28 |
_LANGUAGES = _ASR_LANGUAGES + _ASR_ACCENTED_LANGUAGES
|
@@ -87,10 +87,7 @@ class HySpeech(datasets.GeneratorBasedBuilder):
|
|
87 |
audio_paths = dl_manager.download(audio_urls)
|
88 |
|
89 |
local_extracted_audio_paths = (
|
90 |
-
dl_manager.extract(audio_paths)
|
91 |
-
{
|
92 |
-
split: {lang: [None] * len(audio_paths[split]) for lang in self.config.languages} for split in splits
|
93 |
-
}
|
94 |
)
|
95 |
|
96 |
return [
|
@@ -98,7 +95,7 @@ class HySpeech(datasets.GeneratorBasedBuilder):
|
|
98 |
name=datasets.Split.TRAIN,
|
99 |
gen_kwargs={
|
100 |
"audio_archives": {
|
101 |
-
|
102 |
for lang_archives in audio_paths["train"].items()
|
103 |
},
|
104 |
"local_extracted_archives_paths": local_extracted_audio_paths["train"],
|
@@ -109,7 +106,7 @@ class HySpeech(datasets.GeneratorBasedBuilder):
|
|
109 |
name=datasets.Split.VALIDATION,
|
110 |
gen_kwargs={
|
111 |
"audio_archives": {
|
112 |
-
|
113 |
for lang_archives in audio_paths["dev"].items()
|
114 |
},
|
115 |
"local_extracted_archives_paths": local_extracted_audio_paths["dev"],
|
@@ -120,7 +117,7 @@ class HySpeech(datasets.GeneratorBasedBuilder):
|
|
120 |
name=datasets.Split.TEST,
|
121 |
gen_kwargs={
|
122 |
"audio_archives": {
|
123 |
-
|
124 |
for lang_archives in audio_paths["test"].items()
|
125 |
},
|
126 |
"local_extracted_archives_paths": local_extracted_audio_paths["test"],
|
|
|
14 |
@inproceedings{}
|
15 |
"""
|
16 |
|
17 |
+
_HOMEPAGE = ""
|
18 |
|
19 |
+
_LICENSE = ""
|
20 |
|
21 |
_ASR_LANGUAGES = [
|
22 |
"hy"
|
23 |
]
|
24 |
_ASR_ACCENTED_LANGUAGES = [
|
25 |
+
""
|
26 |
]
|
27 |
|
28 |
_LANGUAGES = _ASR_LANGUAGES + _ASR_ACCENTED_LANGUAGES
|
|
|
87 |
audio_paths = dl_manager.download(audio_urls)
|
88 |
|
89 |
local_extracted_audio_paths = (
|
90 |
+
dl_manager.extract(audio_paths)
|
|
|
|
|
|
|
91 |
)
|
92 |
|
93 |
return [
|
|
|
95 |
name=datasets.Split.TRAIN,
|
96 |
gen_kwargs={
|
97 |
"audio_archives": {
|
98 |
+
'hy': [dl_manager.iter_archive(archive) for archive in lang_archives]
|
99 |
for lang_archives in audio_paths["train"].items()
|
100 |
},
|
101 |
"local_extracted_archives_paths": local_extracted_audio_paths["train"],
|
|
|
106 |
name=datasets.Split.VALIDATION,
|
107 |
gen_kwargs={
|
108 |
"audio_archives": {
|
109 |
+
'hy': [dl_manager.iter_archive(archive) for archive in lang_archives]
|
110 |
for lang_archives in audio_paths["dev"].items()
|
111 |
},
|
112 |
"local_extracted_archives_paths": local_extracted_audio_paths["dev"],
|
|
|
117 |
name=datasets.Split.TEST,
|
118 |
gen_kwargs={
|
119 |
"audio_archives": {
|
120 |
+
'hy': [dl_manager.iter_archive(archive) for archive in lang_archives]
|
121 |
for lang_archives in audio_paths["test"].items()
|
122 |
},
|
123 |
"local_extracted_archives_paths": local_extracted_audio_paths["test"],
|