abdoelsayed
commited on
Commit
•
55b9242
1
Parent(s):
56ed485
MRC
Browse files- arabicaqa.py +3 -0
arabicaqa.py
CHANGED
@@ -34,12 +34,15 @@ class CustomSQuADFormatDataset(GeneratorBasedBuilder):
|
|
34 |
urls_to_download = {
|
35 |
"train": "https://huggingface.co/datasets/abdoelsayed/ArabicaQA/raw/main/MRC/train.json",
|
36 |
"dev": "https://huggingface.co/datasets/abdoelsayed/ArabicaQA/raw/main/MRC/val.json",
|
|
|
37 |
}
|
38 |
downloaded_files = dl_manager.download(urls_to_download)
|
39 |
|
40 |
return [
|
41 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
42 |
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
|
|
|
|
43 |
]
|
44 |
|
45 |
def _generate_examples(self, filepath):
|
|
|
34 |
urls_to_download = {
|
35 |
"train": "https://huggingface.co/datasets/abdoelsayed/ArabicaQA/raw/main/MRC/train.json",
|
36 |
"dev": "https://huggingface.co/datasets/abdoelsayed/ArabicaQA/raw/main/MRC/val.json",
|
37 |
+
"test": "https://huggingface.co/datasets/abdoelsayed/ArabicaQA/raw/main/MRC/test.json"
|
38 |
}
|
39 |
downloaded_files = dl_manager.download(urls_to_download)
|
40 |
|
41 |
return [
|
42 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
43 |
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
44 |
+
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["test"]}),
|
45 |
+
|
46 |
]
|
47 |
|
48 |
def _generate_examples(self, filepath):
|