albertvillanova HF staff commited on
Commit
6a0cc2d
1 Parent(s): 322604b

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. ArabicNLPDataset.py +1 -2
ArabicNLPDataset.py CHANGED
@@ -3,7 +3,7 @@
3
 
4
  import csv
5
  import datasets
6
- from datasets.tasks import TextClassification
7
 
8
  _CITATION = """\
9
  ----ArabicNLPDataset----
@@ -53,7 +53,6 @@ class ArabicNLPDataset(datasets.GeneratorBasedBuilder):
53
  # Homepage of the dataset for documentation
54
  homepage="https://github.com/BihterDass/ArabicTextClassificationDataset",
55
  citation=_CITATION,
56
- task_templates=[TextClassification(text_column="text", label_column="label")],
57
  )
58
 
59
  def _split_generators(self, dl_manager):
 
3
 
4
  import csv
5
  import datasets
6
+
7
 
8
  _CITATION = """\
9
  ----ArabicNLPDataset----
 
53
  # Homepage of the dataset for documentation
54
  homepage="https://github.com/BihterDass/ArabicTextClassificationDataset",
55
  citation=_CITATION,
 
56
  )
57
 
58
  def _split_generators(self, dl_manager):