albertvillanova HF staff commited on
Commit
4ad9a2f
·
verified ·
1 Parent(s): 1536952

Remove deprecated tasks

Browse files

This 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

Files changed (1) hide show
  1. common_voice.py +0 -2
common_voice.py CHANGED
@@ -19,7 +19,6 @@ import os
19
  import warnings
20
 
21
  import datasets
22
- from datasets.tasks import AutomaticSpeechRecognition
23
 
24
 
25
  _DATA_URL = "https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/{}.tar.gz"
@@ -663,7 +662,6 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
663
  homepage=_HOMEPAGE,
664
  license=_LICENSE,
665
  citation=_CITATION,
666
- task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="sentence")],
667
  )
668
 
669
  def _split_generators(self, dl_manager):
 
19
  import warnings
20
 
21
  import datasets
 
22
 
23
 
24
  _DATA_URL = "https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/{}.tar.gz"
 
662
  homepage=_HOMEPAGE,
663
  license=_LICENSE,
664
  citation=_CITATION,
 
665
  )
666
 
667
  def _split_generators(self, dl_manager):