Commit
•
c25a5ef
1
Parent(s):
142e3e3
Remove deprecated tasks
Browse filesThis 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
- dureader_robust.py +0 -6
dureader_robust.py
CHANGED
@@ -21,7 +21,6 @@ import json
|
|
21 |
import os
|
22 |
|
23 |
import datasets
|
24 |
-
from datasets.tasks import QuestionAnsweringExtractive
|
25 |
|
26 |
|
27 |
logger = datasets.logging.get_logger(__name__)
|
@@ -78,11 +77,6 @@ class DureaderRobust(datasets.GeneratorBasedBuilder):
|
|
78 |
# and context as input).
|
79 |
supervised_keys=None,
|
80 |
homepage="https://arxiv.org/abs/2004.11142",
|
81 |
-
task_templates=[
|
82 |
-
QuestionAnsweringExtractive(
|
83 |
-
question_column="question", context_column="context", answers_column="answers"
|
84 |
-
)
|
85 |
-
],
|
86 |
)
|
87 |
|
88 |
def _split_generators(self, dl_manager):
|
|
|
21 |
import os
|
22 |
|
23 |
import datasets
|
|
|
24 |
|
25 |
|
26 |
logger = datasets.logging.get_logger(__name__)
|
|
|
77 |
# and context as input).
|
78 |
supervised_keys=None,
|
79 |
homepage="https://arxiv.org/abs/2004.11142",
|
|
|
|
|
|
|
|
|
|
|
80 |
)
|
81 |
|
82 |
def _split_generators(self, dl_manager):
|