Update pmc_oa.py
Browse files
pmc_oa.py
CHANGED
@@ -31,7 +31,6 @@ _URLs = {
|
|
31 |
"pmc_oa_beta": "https://huggingface.co/datasets/axiong/pmc_oa/resolve/main/pmc_oa_beta.jsonl",
|
32 |
"pmc_oa": "https://huggingface.co/datasets/axiong/pmc_oa/resolve/main/pmc_oa.jsonl",
|
33 |
}
|
34 |
-
downloaded_files = dl_manager.download_and_extract(_URLs)
|
35 |
|
36 |
|
37 |
class PMC_OA_Config(datasets.BuilderConfig):
|
@@ -92,7 +91,7 @@ class PMC_OA(datasets.GeneratorBasedBuilder):
|
|
92 |
|
93 |
def _split_generators(self, dl_manager):
|
94 |
"""Returns SplitGenerators."""
|
95 |
-
|
96 |
if self.config.name == "pmc_oa_beta":
|
97 |
return [
|
98 |
datasets.SplitGenerator(
|
|
|
31 |
"pmc_oa_beta": "https://huggingface.co/datasets/axiong/pmc_oa/resolve/main/pmc_oa_beta.jsonl",
|
32 |
"pmc_oa": "https://huggingface.co/datasets/axiong/pmc_oa/resolve/main/pmc_oa.jsonl",
|
33 |
}
|
|
|
34 |
|
35 |
|
36 |
class PMC_OA_Config(datasets.BuilderConfig):
|
|
|
91 |
|
92 |
def _split_generators(self, dl_manager):
|
93 |
"""Returns SplitGenerators."""
|
94 |
+
downloaded_files = dl_manager.download_and_extract(_URLs)
|
95 |
if self.config.name == "pmc_oa_beta":
|
96 |
return [
|
97 |
datasets.SplitGenerator(
|