Datasets:
Tasks:
Question Answering
Sub-tasks:
extractive-qa
Languages:
English
Size:
10K<n<100K
ArXiv:
License:
Update qas.py
Browse files
qas.py
CHANGED
|
@@ -31,10 +31,10 @@ articles, where the answer to every question is a segment of text, or span, \
|
|
| 31 |
from the corresponding reading passage, or the question might be unanswerable.
|
| 32 |
"""
|
| 33 |
|
| 34 |
-
_URL =
|
| 35 |
_URLS = {
|
| 36 |
"train":"https://huggingface.co/datasets/fedryanto/qas/blob/main/train.json",
|
| 37 |
-
"
|
| 38 |
}
|
| 39 |
|
| 40 |
|
|
@@ -95,7 +95,7 @@ class Squad(datasets.GeneratorBasedBuilder):
|
|
| 95 |
|
| 96 |
return [
|
| 97 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_path["train"]}),
|
| 98 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": data_path["
|
| 99 |
]
|
| 100 |
|
| 101 |
def _generate_examples(self, filepath):
|
|
|
|
| 31 |
from the corresponding reading passage, or the question might be unanswerable.
|
| 32 |
"""
|
| 33 |
|
| 34 |
+
_URL = "https://huggingface.co/datasets/fedryanto/qas/tree/main/"
|
| 35 |
_URLS = {
|
| 36 |
"train":"https://huggingface.co/datasets/fedryanto/qas/blob/main/train.json",
|
| 37 |
+
"dev": "https://huggingface.co/datasets/fedryanto/qas/blob/main/test.json",
|
| 38 |
}
|
| 39 |
|
| 40 |
|
|
|
|
| 95 |
|
| 96 |
return [
|
| 97 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_path["train"]}),
|
| 98 |
+
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": data_path["dev"]}),
|
| 99 |
]
|
| 100 |
|
| 101 |
def _generate_examples(self, filepath):
|