Commit
•
b7429f0
1
Parent(s):
420fb36
Remove deprecated tasks
Browse filesThis dataset uses `tasks`, which are deprecated and will raise an error after the next major release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999
- common_voice_9_0.py +0 -4
common_voice_9_0.py
CHANGED
@@ -21,7 +21,6 @@ import urllib
|
|
21 |
|
22 |
import datasets
|
23 |
import requests
|
24 |
-
from datasets.tasks import AutomaticSpeechRecognition
|
25 |
from datasets.utils.py_utils import size_str
|
26 |
from huggingface_hub import HfApi, HfFolder
|
27 |
|
@@ -119,9 +118,6 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
119 |
license=_LICENSE,
|
120 |
citation=_CITATION,
|
121 |
version=self.config.version,
|
122 |
-
#task_templates=[
|
123 |
-
# AutomaticSpeechRecognition(audio_file_path_column="path", transcription_column="sentence")
|
124 |
-
#],
|
125 |
)
|
126 |
|
127 |
def _get_bundle_url(self, locale, url_template):
|
|
|
21 |
|
22 |
import datasets
|
23 |
import requests
|
|
|
24 |
from datasets.utils.py_utils import size_str
|
25 |
from huggingface_hub import HfApi, HfFolder
|
26 |
|
|
|
118 |
license=_LICENSE,
|
119 |
citation=_CITATION,
|
120 |
version=self.config.version,
|
|
|
|
|
|
|
121 |
)
|
122 |
|
123 |
def _get_bundle_url(self, locale, url_template):
|