Datasets:
Update the download link in pubmed.py
#2
by
razent
- opened
README.md
CHANGED
@@ -27,6 +27,7 @@ pretty_name: PubMed
|
|
27 |
tags:
|
28 |
- citation-estimation
|
29 |
dataset_info:
|
|
|
30 |
features:
|
31 |
- name: MedlineCitation
|
32 |
struct:
|
@@ -132,13 +133,12 @@ dataset_info:
|
|
132 |
dtype: string
|
133 |
- name: CitationId
|
134 |
dtype: int32
|
135 |
-
config_name: '2021'
|
136 |
splits:
|
137 |
- name: train
|
138 |
-
num_bytes:
|
139 |
-
num_examples:
|
140 |
-
download_size:
|
141 |
-
dataset_size:
|
142 |
---
|
143 |
|
144 |
# Dataset Card for PubMed
|
@@ -316,4 +316,4 @@ There are no splits in this dataset. It is given as is.
|
|
316 |
|
317 |
### Contributions
|
318 |
|
319 |
-
Thanks to [@Narsil](https://github.com/Narsil) for adding this dataset.
|
|
|
27 |
tags:
|
28 |
- citation-estimation
|
29 |
dataset_info:
|
30 |
+
- config_name: '2023'
|
31 |
features:
|
32 |
- name: MedlineCitation
|
33 |
struct:
|
|
|
133 |
dtype: string
|
134 |
- name: CitationId
|
135 |
dtype: int32
|
|
|
136 |
splits:
|
137 |
- name: train
|
138 |
+
num_bytes: 52199025303
|
139 |
+
num_examples: 34960700
|
140 |
+
download_size: 41168762331
|
141 |
+
dataset_size: 52199025303
|
142 |
---
|
143 |
|
144 |
# Dataset Card for PubMed
|
|
|
316 |
|
317 |
### Contributions
|
318 |
|
319 |
+
Thanks to [@Narsil](https://github.com/Narsil) for adding this dataset.
|
pubmed.py
CHANGED
@@ -39,7 +39,7 @@ _LICENSE = ""
|
|
39 |
# The HuggingFace dataset library don't host the datasets but only point to the original files
|
40 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
41 |
# Note these URLs here are used by MockDownloadManager.create_dummy_data_list
|
42 |
-
_URLs = [f"https://ftp.ncbi.nlm.nih.gov/pubmed/baseline/
|
43 |
|
44 |
|
45 |
# Copyright Ferry Boender, released under the MIT license.
|
@@ -146,7 +146,7 @@ class Pubmed(datasets.GeneratorBasedBuilder):
|
|
146 |
"""Pubmed citations records"""
|
147 |
|
148 |
BUILDER_CONFIGS = [
|
149 |
-
datasets.BuilderConfig(name="
|
150 |
]
|
151 |
|
152 |
# FILLED automatically from features
|
|
|
39 |
# The HuggingFace dataset library don't host the datasets but only point to the original files
|
40 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
41 |
# Note these URLs here are used by MockDownloadManager.create_dummy_data_list
|
42 |
+
_URLs = [f"https://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed23n{i:04d}.xml.gz" for i in range(1, 1167)]
|
43 |
|
44 |
|
45 |
# Copyright Ferry Boender, released under the MIT license.
|
|
|
146 |
"""Pubmed citations records"""
|
147 |
|
148 |
BUILDER_CONFIGS = [
|
149 |
+
datasets.BuilderConfig(name="2023", description="The 2023 annual record", version=datasets.Version("3.0.0")),
|
150 |
]
|
151 |
|
152 |
# FILLED automatically from features
|