Update ChinaOpen.py
Browse files- ChinaOpen.py +3 -3
ChinaOpen.py
CHANGED
|
@@ -32,11 +32,11 @@ from the corresponding reading passage, or the question might be unanswerable.
|
|
| 32 |
|
| 33 |
#_URL = "./ChinaOpen-1k.zip"
|
| 34 |
_URLS = {
|
| 35 |
-
|
| 36 |
-
"./ChinaOpen-1k.zip"
|
| 37 |
}
|
| 38 |
|
| 39 |
|
|
|
|
| 40 |
class ChinaOpenConfig(datasets.BuilderConfig):
|
| 41 |
"""BuilderConfig for SQUAD."""
|
| 42 |
|
|
@@ -92,7 +92,7 @@ class ChinaOpen(datasets.GeneratorBasedBuilder):
|
|
| 92 |
|
| 93 |
return [
|
| 94 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
| 95 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
| 96 |
]
|
| 97 |
|
| 98 |
def _generate_examples(self, filepath):
|
|
|
|
| 32 |
|
| 33 |
#_URL = "./ChinaOpen-1k.zip"
|
| 34 |
_URLS = {
|
| 35 |
+
"train": "https://huggingface.co/datasets/AIMClab/ChinaOpen/resolve/main/ChinaOpen-1k.zip"
|
|
|
|
| 36 |
}
|
| 37 |
|
| 38 |
|
| 39 |
+
|
| 40 |
class ChinaOpenConfig(datasets.BuilderConfig):
|
| 41 |
"""BuilderConfig for SQUAD."""
|
| 42 |
|
|
|
|
| 92 |
|
| 93 |
return [
|
| 94 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
| 95 |
+
#datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
| 96 |
]
|
| 97 |
|
| 98 |
def _generate_examples(self, filepath):
|