Update sci_lay.py
Browse files- sci_lay.py +2 -2
sci_lay.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
"""SciLay Dataset."""
|
2 |
-
import gzip
|
3 |
import json
|
4 |
import os
|
5 |
|
@@ -25,7 +24,7 @@ The main objective of the SCILAY dataset is to support the development and evalu
|
|
25 |
_LICENSE = "Creative Commons Attribution 4.0 International"
|
26 |
|
27 |
_SPLIT_NAMES = {datasets.Split.TRAIN: "train", datasets.Split.VALIDATION: "validation", datasets.Split.TEST: "test"}
|
28 |
-
_URL = "data/{version}/{split_name}.
|
29 |
|
30 |
_DOI = "doi"
|
31 |
_PMCID = "pmcid"
|
@@ -122,6 +121,7 @@ class SciLay(datasets.GeneratorBasedBuilder):
|
|
122 |
split: _URL.format(version=self.config.version, split_name=split_name)
|
123 |
for split, split_name in _SPLIT_NAMES.items()
|
124 |
}
|
|
|
125 |
dl_paths = dl_manager.download(urls)
|
126 |
paths = {
|
127 |
split: [
|
|
|
1 |
"""SciLay Dataset."""
|
|
|
2 |
import json
|
3 |
import os
|
4 |
|
|
|
24 |
_LICENSE = "Creative Commons Attribution 4.0 International"
|
25 |
|
26 |
_SPLIT_NAMES = {datasets.Split.TRAIN: "train", datasets.Split.VALIDATION: "validation", datasets.Split.TEST: "test"}
|
27 |
+
_URL = "data/{version}/{split_name}.arrow"
|
28 |
|
29 |
_DOI = "doi"
|
30 |
_PMCID = "pmcid"
|
|
|
121 |
split: _URL.format(version=self.config.version, split_name=split_name)
|
122 |
for split, split_name in _SPLIT_NAMES.items()
|
123 |
}
|
124 |
+
print(urls)
|
125 |
dl_paths = dl_manager.download(urls)
|
126 |
paths = {
|
127 |
split: [
|