albertvillanova HF staff commited on
Commit
c0af8c2
1 Parent(s): c32c46a

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. nst.py +0 -4
nst.py CHANGED
@@ -19,7 +19,6 @@ import json
19
  import os
20
 
21
  import datasets
22
- from datasets.tasks import AutomaticSpeechRecognition
23
 
24
 
25
  _DESCRIPTION = """\
@@ -90,9 +89,6 @@ class NSTDataset(datasets.GeneratorBasedBuilder):
90
  features=features,
91
  supervised_keys=None,
92
  homepage=_URL,
93
- task_templates=[
94
- AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")
95
- ],
96
  )
97
 
98
  # split is hardcoded to 'train' for now; there is a test set, but
 
19
  import os
20
 
21
  import datasets
 
22
 
23
 
24
  _DESCRIPTION = """\
 
89
  features=features,
90
  supervised_keys=None,
91
  homepage=_URL,
 
 
 
92
  )
93
 
94
  # split is hardcoded to 'train' for now; there is a test set, but