Remove deprecated tasks

#1
by albertvillanova HF staff - opened
Files changed (1) hide show
  1. mind.py +0 -2
mind.py CHANGED
@@ -1,6 +1,5 @@
1
  import csv
2
  import datasets
3
- from datasets.tasks import TextClassification
4
 
5
  _TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/mind/resolve/main/train.csv"
6
  _TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/mind/resolve/main/test.csv"
@@ -15,7 +14,6 @@ class mind(datasets.GeneratorBasedBuilder):
15
  "label": datasets.features.ClassLabel(names=['foodanddrink', 'games', 'lifestyle', 'weather', 'kids', 'entertainment', 'middleeast', 'news', 'autos', 'video', 'travel', 'music', 'northamerica', 'movies', 'finance', 'health', 'sports', 'tv']),
16
  }
17
  ),
18
- task_templates=[TextClassification(text_column="text", label_column="label")],
19
  )
20
 
21
  def _split_generators(self, dl_manager):
 
1
  import csv
2
  import datasets
 
3
 
4
  _TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/mind/resolve/main/train.csv"
5
  _TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/mind/resolve/main/test.csv"
 
14
  "label": datasets.features.ClassLabel(names=['foodanddrink', 'games', 'lifestyle', 'weather', 'kids', 'entertainment', 'middleeast', 'news', 'autos', 'video', 'travel', 'music', 'northamerica', 'movies', 'finance', 'health', 'sports', 'tv']),
15
  }
16
  ),
 
17
  )
18
 
19
  def _split_generators(self, dl_manager):