albertvillanova HF staff commited on
Commit
deff07c
1 Parent(s): 026b1df

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. NPSC.py +0 -7
NPSC.py CHANGED
@@ -20,7 +20,6 @@ import io
20
  import json
21
  import tarfile
22
  import datasets
23
- from datasets.tasks import AutomaticSpeechRecognition
24
 
25
 
26
  _CITATION = """\
@@ -130,12 +129,6 @@ class Npsc(datasets.GeneratorBasedBuilder):
130
  supervised_keys=None,
131
  homepage=_HOMEPAGE,
132
  citation=_CITATION,
133
- task_templates=[
134
- AutomaticSpeechRecognition(
135
- audio_column="audio",
136
- transcription_column="sentence_text",
137
- )
138
- ],
139
  )
140
 
141
  def _split_generators(self, dl_manager):
 
20
  import json
21
  import tarfile
22
  import datasets
 
23
 
24
 
25
  _CITATION = """\
 
129
  supervised_keys=None,
130
  homepage=_HOMEPAGE,
131
  citation=_CITATION,
 
 
 
 
 
 
132
  )
133
 
134
  def _split_generators(self, dl_manager):