Upload fact2020.py
Browse files- fact2020.py +1 -5
fact2020.py
CHANGED
@@ -38,10 +38,6 @@ _URLS = {
|
|
38 |
"test": _URL + "test-task1.json",
|
39 |
}
|
40 |
|
41 |
-
_TRAINING_FILE = "train.txt"
|
42 |
-
_DEV_FILE = "valid.txt"
|
43 |
-
_TEST_FILE = "test.txt"
|
44 |
-
|
45 |
|
46 |
class Fact2020Config(datasets.BuilderConfig):
|
47 |
"""BuilderConfig for Fact2020"""
|
@@ -86,7 +82,7 @@ class Fact2020(datasets.GeneratorBasedBuilder):
|
|
86 |
)
|
87 |
|
88 |
def _split_generators(self, dl_manager):
|
89 |
-
urls_to_download =
|
90 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
91 |
return [
|
92 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
|
|
38 |
"test": _URL + "test-task1.json",
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
41 |
|
42 |
class Fact2020Config(datasets.BuilderConfig):
|
43 |
"""BuilderConfig for Fact2020"""
|
|
|
82 |
)
|
83 |
|
84 |
def _split_generators(self, dl_manager):
|
85 |
+
urls_to_download = _URLS
|
86 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
87 |
return [
|
88 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|