albertvillanova HF staff commited on
Commit
3bb26eb
1 Parent(s): e0ec01c

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. faquad.py +0 -6
faquad.py CHANGED
@@ -23,7 +23,6 @@
23
  import json
24
 
25
  import datasets
26
- from datasets.tasks import QuestionAnsweringExtractive
27
 
28
 
29
  logger = datasets.logging.get_logger(__name__)
@@ -112,11 +111,6 @@ class Faquad(datasets.GeneratorBasedBuilder):
112
  supervised_keys=None,
113
  homepage="https://github.com/liafacom/faquad",
114
  citation=_CITATION,
115
- task_templates=[
116
- QuestionAnsweringExtractive(
117
- question_column="question", context_column="context", answers_column="answers"
118
- )
119
- ],
120
  )
121
 
122
  def _split_generators(self, dl_manager):
 
23
  import json
24
 
25
  import datasets
 
26
 
27
 
28
  logger = datasets.logging.get_logger(__name__)
 
111
  supervised_keys=None,
112
  homepage="https://github.com/liafacom/faquad",
113
  citation=_CITATION,
 
 
 
 
 
114
  )
115
 
116
  def _split_generators(self, dl_manager):