Commit
•
b443dc5
1
Parent(s):
b5864b5
Update baseline range (#8)
Browse files- Update baseline range (91aeeb9df3efa8e5f2348d69d5f443a0636e478e)
- open_access.py +2 -1
open_access.py
CHANGED
@@ -56,6 +56,7 @@ _SUBSETS = {
|
|
56 |
"other": "oa_other",
|
57 |
}
|
58 |
_BASELINE_DATE = "2022-12-17"
|
|
|
59 |
|
60 |
|
61 |
class OpenAccessConfig(datasets.BuilderConfig):
|
@@ -116,7 +117,7 @@ class OpenAccess(datasets.GeneratorBasedBuilder):
|
|
116 |
url = _URL.format(subset=_SUBSETS[subset])
|
117 |
basename = f"{_SUBSETS[subset]}_txt."
|
118 |
# Baselines
|
119 |
-
baselines = [f"PMC00{i}xxxxxx.baseline.{_BASELINE_DATE}" for i in range(
|
120 |
# baseline_urls = {
|
121 |
# "baseline_file_lists": [f"{url}{basename}{baseline}.filelist.csv" for baseline in baselines],
|
122 |
# "baseline_archives": [f"{url}{basename}{baseline}.tar.gz" for baseline in baselines],
|
|
|
56 |
"other": "oa_other",
|
57 |
}
|
58 |
_BASELINE_DATE = "2022-12-17"
|
59 |
+
_BASELINE_MAX_RANGE = 10
|
60 |
|
61 |
|
62 |
class OpenAccessConfig(datasets.BuilderConfig):
|
|
|
117 |
url = _URL.format(subset=_SUBSETS[subset])
|
118 |
basename = f"{_SUBSETS[subset]}_txt."
|
119 |
# Baselines
|
120 |
+
baselines = [f"PMC00{i}xxxxxx.baseline.{_BASELINE_DATE}" for i in range(_BASELINE_MAX_RANGE)]
|
121 |
# baseline_urls = {
|
122 |
# "baseline_file_lists": [f"{url}{basename}{baseline}.filelist.csv" for baseline in baselines],
|
123 |
# "baseline_archives": [f"{url}{basename}{baseline}.tar.gz" for baseline in baselines],
|