albertvillanova HF staff commited on
Commit
4f80254
1 Parent(s): 96a234b

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. banking77.py +0 -2
banking77.py CHANGED
@@ -18,7 +18,6 @@
18
  import csv
19
 
20
  import datasets
21
- from datasets.tasks import TextClassification
22
 
23
 
24
  _CITATION = """\
@@ -148,7 +147,6 @@ class Banking77(datasets.GeneratorBasedBuilder):
148
  homepage=_HOMEPAGE,
149
  license=_LICENSE,
150
  citation=_CITATION,
151
- task_templates=[TextClassification(text_column="text", label_column="label")],
152
  )
153
 
154
  def _split_generators(self, dl_manager):
 
18
  import csv
19
 
20
  import datasets
 
21
 
22
 
23
  _CITATION = """\
 
147
  homepage=_HOMEPAGE,
148
  license=_LICENSE,
149
  citation=_CITATION,
 
150
  )
151
 
152
  def _split_generators(self, dl_manager):