albertvillanova HF staff commited on
Commit
84af041
1 Parent(s): 0465d88

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. emo.py +0 -2
emo.py CHANGED
@@ -18,7 +18,6 @@
18
  import json
19
 
20
  import datasets
21
- from datasets.tasks import TextClassification
22
 
23
 
24
  _CITATION = """\
@@ -81,7 +80,6 @@ class Emo(datasets.GeneratorBasedBuilder):
81
  supervised_keys=None,
82
  homepage="https://www.aclweb.org/anthology/S19-2005/",
83
  citation=_CITATION,
84
- task_templates=[TextClassification(text_column="text", label_column="label")],
85
  )
86
 
87
  def _get_drive_url(self, url):
 
18
  import json
19
 
20
  import datasets
 
21
 
22
 
23
  _CITATION = """\
 
80
  supervised_keys=None,
81
  homepage="https://www.aclweb.org/anthology/S19-2005/",
82
  citation=_CITATION,
 
83
  )
84
 
85
  def _get_drive_url(self, url):