Update coraal-asr.py
Browse files- coraal-asr.py +7 -1
coraal-asr.py
CHANGED
@@ -40,6 +40,9 @@ URLS = {
|
|
40 |
},
|
41 |
"ctc-large": {
|
42 |
"text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-ctc-large.tar.gz",
|
|
|
|
|
|
|
43 |
}
|
44 |
}
|
45 |
|
@@ -60,8 +63,9 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
|
|
60 |
coraal_asr_config(name="v1", version=VERSION),
|
61 |
coraal_asr_config(name="v2", version=VERSION),
|
62 |
coraal_asr_config(name="ctc-large", version=VERSION),
|
|
|
63 |
]
|
64 |
-
DEFAULT_CONFIG_NAME = "
|
65 |
BUILDER_CONFIG_CLASS = coraal_asr_config
|
66 |
|
67 |
def _info(self):
|
@@ -91,6 +95,8 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
|
|
91 |
urls = deepcopy(URLS["v2"])
|
92 |
if "ctc-large" in self.config.name:
|
93 |
urls = deepcopy(URLS["ctc-large"])
|
|
|
|
|
94 |
|
95 |
dl_path = dl_manager.download_and_extract(urls)
|
96 |
|
|
|
40 |
},
|
41 |
"ctc-large": {
|
42 |
"text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-ctc-large.tar.gz",
|
43 |
+
},
|
44 |
+
"xlsr": {
|
45 |
+
"text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-xlsr.tar.gz",
|
46 |
}
|
47 |
}
|
48 |
|
|
|
63 |
coraal_asr_config(name="v1", version=VERSION),
|
64 |
coraal_asr_config(name="v2", version=VERSION),
|
65 |
coraal_asr_config(name="ctc-large", version=VERSION),
|
66 |
+
coraal_asr_config(name="xlsr", version=VERSION),
|
67 |
]
|
68 |
+
DEFAULT_CONFIG_NAME = "ctc-large" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
69 |
BUILDER_CONFIG_CLASS = coraal_asr_config
|
70 |
|
71 |
def _info(self):
|
|
|
95 |
urls = deepcopy(URLS["v2"])
|
96 |
if "ctc-large" in self.config.name:
|
97 |
urls = deepcopy(URLS["ctc-large"])
|
98 |
+
if "xlsr" in self.config.name:
|
99 |
+
urls = deepcopy(URLS["xlsr"])
|
100 |
|
101 |
dl_path = dl_manager.download_and_extract(urls)
|
102 |
|