albertvillanova HF staff commited on
Commit
bf6c899
1 Parent(s): 88b10b4

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. quranqa.py +0 -6
quranqa.py CHANGED
@@ -1,7 +1,6 @@
1
  import json
2
 
3
  import datasets
4
- from datasets.tasks import QuestionAnsweringExtractive
5
 
6
 
7
  _CITATION = """\
@@ -92,11 +91,6 @@ class QuranQA(datasets.GeneratorBasedBuilder):
92
  homepage=_HOMEPAGE,
93
  license=_LICENSE,
94
  citation=_CITATION,
95
- task_templates=[
96
- QuestionAnsweringExtractive(
97
- question_column="question", context_column="passage", answers_column="answers"
98
- )
99
- ],
100
  )
101
 
102
  def _split_generators(self, dl_manager):
 
1
  import json
2
 
3
  import datasets
 
4
 
5
 
6
  _CITATION = """\
 
91
  homepage=_HOMEPAGE,
92
  license=_LICENSE,
93
  citation=_CITATION,
 
 
 
 
 
94
  )
95
 
96
  def _split_generators(self, dl_manager):