albertvillanova HF staff commited on
Commit
11d1017
1 Parent(s): a415175

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. speechdat.py +0 -4
speechdat.py CHANGED
@@ -17,7 +17,6 @@
17
  import datasets
18
  import json
19
  import os
20
- from datasets.tasks import AutomaticSpeechRecognition
21
  from pathlib import Path
22
 
23
  _DESCRIPTION = """\
@@ -53,9 +52,6 @@ class SpeechDat(datasets.GeneratorBasedBuilder):
53
  supervised_keys=None,
54
  homepage=_HOMEPAGE,
55
  license=_LICENSE,
56
- task_templates=[
57
- AutomaticSpeechRecognition(audio_file_path_column="path", transcription_column="sentence")
58
- ],
59
  )
60
 
61
  def _split_generators(self, dl_manager):
 
17
  import datasets
18
  import json
19
  import os
 
20
  from pathlib import Path
21
 
22
  _DESCRIPTION = """\
 
52
  supervised_keys=None,
53
  homepage=_HOMEPAGE,
54
  license=_LICENSE,
 
 
 
55
  )
56
 
57
  def _split_generators(self, dl_manager):