Commit
•
b5cbb65
1
Parent(s):
61eae73
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
- icelandic-qa-NQiI.py +0 -6
icelandic-qa-NQiI.py
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
import json
|
4 |
|
5 |
import datasets
|
6 |
-
from datasets.tasks import QuestionAnsweringExtractive
|
7 |
|
8 |
|
9 |
_CITATION = """\
|
@@ -65,11 +64,6 @@ class NQiI(datasets.GeneratorBasedBuilder):
|
|
65 |
# Homepage of the dataset for documentation
|
66 |
homepage="https://vesteinn.is/qa/",
|
67 |
citation=_CITATION,
|
68 |
-
task_templates=[
|
69 |
-
QuestionAnsweringExtractive(
|
70 |
-
question_column="question", context_column="context", answers_column="answers"
|
71 |
-
)
|
72 |
-
],
|
73 |
)
|
74 |
|
75 |
def _split_generators(self, dl_manager):
|
|
|
3 |
import json
|
4 |
|
5 |
import datasets
|
|
|
6 |
|
7 |
|
8 |
_CITATION = """\
|
|
|
64 |
# Homepage of the dataset for documentation
|
65 |
homepage="https://vesteinn.is/qa/",
|
66 |
citation=_CITATION,
|
|
|
|
|
|
|
|
|
|
|
67 |
)
|
68 |
|
69 |
def _split_generators(self, dl_manager):
|