Update pubmed25.py
Browse files- pubmed25.py +15 -2
pubmed25.py
CHANGED
@@ -12,8 +12,21 @@
|
|
12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
# See the License for the specific language governing permissions and
|
14 |
# limitations under the License.
|
15 |
-
"""
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
import copy
|
19 |
import gzip
|
|
|
12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
# See the License for the specific language governing permissions and
|
14 |
# limitations under the License.
|
15 |
+
"""
|
16 |
+
MEDLINE/PubMed data loader for Hugging Face Datasets.
|
17 |
+
|
18 |
+
This script is based on the original NCBI PubMed dataset script from Hugging Face.
|
19 |
+
Modifications by:
|
20 |
+
- Hoang Ha (LIG): Updated for 2025 baseline structure and integrated full abstract parsing.
|
21 |
+
- Tiziri Terkmani (Research Engineer, LIG, Team SIGMA): Enhanced abstract parsing logic was adapted for the NanoBubble Project: https://nanobubbles.hypotheses.org/
|
22 |
+
|
23 |
+
**Important Caution:** The default URL configuration in this script is set up as an
|
24 |
+
example and primarily targets files from the **2025 baseline**. To download data
|
25 |
+
covering the full intended range (e.g., 2015-2025), you **MUST** modify the `_URLs`
|
26 |
+
list below to include the correct file paths for **ALL** desired years from the
|
27 |
+
NCBI FTP server (ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/). The number of files
|
28 |
+
per year varies. Use with caution and verify the downloaded data range.
|
29 |
+
"""
|
30 |
|
31 |
import copy
|
32 |
import gzip
|