albertvillanova HF staff commited on
Commit
26ac83d
1 Parent(s): 10de1d9

Remove deprecated tasks

Browse files

Remove deprecated tasks.

This dataset uses `tasks`, which are deprecated and will raise an error after the next release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999

Files changed (1) hide show
  1. consumer-finance-complaints.py +0 -6
consumer-finance-complaints.py CHANGED
@@ -3,7 +3,6 @@ import os
3
  import textwrap
4
 
5
  import datasets
6
- from datasets import TextClassification
7
 
8
 
9
  logger = datasets.logging.get_logger(__name__)
@@ -173,11 +172,6 @@ class ConsumerComplaints(datasets.GeneratorBasedBuilder):
173
  homepage=_HOMEPAGE,
174
  license=_LICENSE,
175
  citation=_CITATION,
176
- task_templates=[
177
- TextClassification(text_column="Complaint Text", label_column="Product"),
178
- TextClassification(text_column="Complaint Text", label_column="Sub Product"),
179
- TextClassification(text_column="Complaint Text", label_column="Tags"),
180
- ],
181
  )
182
 
183
  def _split_generators(self, dl_manager):
 
3
  import textwrap
4
 
5
  import datasets
 
6
 
7
 
8
  logger = datasets.logging.get_logger(__name__)
 
172
  homepage=_HOMEPAGE,
173
  license=_LICENSE,
174
  citation=_CITATION,
 
 
 
 
 
175
  )
176
 
177
  def _split_generators(self, dl_manager):