albertvillanova HF staff commited on
Commit
b04c8ed
1 Parent(s): fd3771b

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. phrase_sense_disambiguation.py +0 -6
phrase_sense_disambiguation.py CHANGED
@@ -21,7 +21,6 @@ import json
21
  import os.path
22
 
23
  import datasets
24
- from datasets.tasks import QuestionAnsweringExtractive
25
 
26
 
27
  logger = datasets.logging.get_logger(__name__)
@@ -98,11 +97,6 @@ class PhraseSenseDisambiguation(datasets.GeneratorBasedBuilder):
98
  homepage=_HOMEPAGE,
99
  license=_LICENSE,
100
  citation=_CITATION,
101
- task_templates=[
102
- QuestionAnsweringExtractive(
103
- question_column="question", context_column="context", answers_column="answers"
104
- )
105
- ]
106
  )
107
 
108
  def _split_generators(self, dl_manager):
 
21
  import os.path
22
 
23
  import datasets
 
24
 
25
 
26
  logger = datasets.logging.get_logger(__name__)
 
97
  homepage=_HOMEPAGE,
98
  license=_LICENSE,
99
  citation=_CITATION,
 
 
 
 
 
100
  )
101
 
102
  def _split_generators(self, dl_manager):