albertvillanova HF staff commited on
Commit
d7f0509
1 Parent(s): 9772109

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

beer_reviews_label_drift_neutral.py CHANGED
@@ -21,7 +21,6 @@ import json
21
  import os
22
 
23
  import datasets
24
- from datasets.tasks import TextClassification
25
 
26
 
27
 
@@ -121,7 +120,6 @@ class BeerReviewsLabelDriftNeutral(datasets.GeneratorBasedBuilder):
121
  license=_LICENSE,
122
  # Citation for the dataset
123
  citation=_CITATION,
124
- task_templates=[TextClassification(text_column="text", label_column="label")],
125
  )
126
 
127
  def _split_generators(self, dl_manager):
 
21
  import os
22
 
23
  import datasets
 
24
 
25
 
26
 
 
120
  license=_LICENSE,
121
  # Citation for the dataset
122
  citation=_CITATION,
 
123
  )
124
 
125
  def _split_generators(self, dl_manager):