Update coraal-asr.py
Browse files- coraal-asr.py +6 -0
coraal-asr.py
CHANGED
@@ -43,6 +43,9 @@ URLS = {
|
|
43 |
},
|
44 |
"xlsr": {
|
45 |
"text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-xlsr.tar.gz",
|
|
|
|
|
|
|
46 |
}
|
47 |
}
|
48 |
|
@@ -64,6 +67,7 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
|
|
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
|
@@ -97,6 +101,8 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
|
|
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 |
|
|
|
43 |
},
|
44 |
"xlsr": {
|
45 |
"text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-xlsr.tar.gz",
|
46 |
+
},
|
47 |
+
"whisper-small": {
|
48 |
+
"text": "https://huggingface.co/datasets/Padomin/coraal-asr/resolve/main/coraal-whisper.tar.gz",
|
49 |
}
|
50 |
}
|
51 |
|
|
|
67 |
coraal_asr_config(name="v2", version=VERSION),
|
68 |
coraal_asr_config(name="ctc-large", version=VERSION),
|
69 |
coraal_asr_config(name="xlsr", version=VERSION),
|
70 |
+
coraal_asr_config(name="whisper-small", version=VERSION),
|
71 |
]
|
72 |
DEFAULT_CONFIG_NAME = "ctc-large" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
73 |
BUILDER_CONFIG_CLASS = coraal_asr_config
|
|
|
101 |
urls = deepcopy(URLS["ctc-large"])
|
102 |
if "xlsr" in self.config.name:
|
103 |
urls = deepcopy(URLS["xlsr"])
|
104 |
+
if "whisper-small" in self.config.name:
|
105 |
+
urls = deepcopy(URLS["whisper-small"])
|
106 |
|
107 |
dl_path = dl_manager.download_and_extract(urls)
|
108 |
|