albertvillanova HF staff commited on
Commit
9ba4e54
1 Parent(s): 4cce6b9

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. malayalam_news.py +0 -2
malayalam_news.py CHANGED
@@ -3,7 +3,6 @@ import os
3
 
4
  import datasets
5
 
6
- from datasets.tasks import TextClassification
7
 
8
  _DESCRIPTION = """\
9
  The AI4Bharat-IndicNLP dataset is an ongoing effort to create a collection of large-scale,
@@ -59,7 +58,6 @@ class MalayalamNews(datasets.GeneratorBasedBuilder):
59
  ),
60
  homepage="https://github.com/AI4Bharat/indicnlp_corpus#indicnlp-news-article-classification-dataset",
61
  citation=_CITATION,
62
- task_templates=[TextClassification(text_column="text", label_column="label")],
63
  )
64
 
65
  def _split_generators(self, dl_manager):
 
3
 
4
  import datasets
5
 
 
6
 
7
  _DESCRIPTION = """\
8
  The AI4Bharat-IndicNLP dataset is an ongoing effort to create a collection of large-scale,
 
58
  ),
59
  homepage="https://github.com/AI4Bharat/indicnlp_corpus#indicnlp-news-article-classification-dataset",
60
  citation=_CITATION,
 
61
  )
62
 
63
  def _split_generators(self, dl_manager):