albertvillanova HF staff commited on
Commit
345ce8c
1 Parent(s): a80eef6

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. tydiqa-goldp.py +1 -6
tydiqa-goldp.py CHANGED
@@ -2,7 +2,7 @@ import json
2
  import textwrap
3
 
4
  import datasets
5
- from datasets.tasks import QuestionAnsweringExtractive
6
 
7
  # TODO(tydiqa): BibTeX citation
8
  _CITATION = """\
@@ -69,11 +69,6 @@ class tydiqa_GoldP(datasets.GeneratorBasedBuilder):
69
  supervised_keys=None,
70
  homepage="https://github.com/google-research-datasets/tydiqa",
71
  citation=_CITATION,
72
- task_templates=[
73
- QuestionAnsweringExtractive(
74
- question_column="question", context_column="context", answers_column="answers"
75
- )
76
- ],
77
  )
78
 
79
  def _split_generators(self, dl_manager):
 
2
  import textwrap
3
 
4
  import datasets
5
+
6
 
7
  # TODO(tydiqa): BibTeX citation
8
  _CITATION = """\
 
69
  supervised_keys=None,
70
  homepage="https://github.com/google-research-datasets/tydiqa",
71
  citation=_CITATION,
 
 
 
 
 
72
  )
73
 
74
  def _split_generators(self, dl_manager):