Populate text paragraphs into PubMed sample datasets using a pre-built PMC XML index.
Project description
BioMed-Enriched
Populate paragraph text into BioMed-Enriched Non-Commercial split.
Install
pip install biomed-enriched
Requires Python ≥ 3.10. No extra setup needed for end-users.
Quick start (Python)
from biomed_enriched import populate
DATASET_DIR = "/path/to/biomed-enriched" # input dataset
PMC_XML_ROOT = "/path/to/pmc/xml" # PMC XML dump
OUTPUT_DIR = "/path/to/populated-biomed-enriched" # drop arg to overwrite in-place
populate(DATASET_DIR, PMC_XML_ROOT, output_path=OUTPUT_DIR, splits="non-comm", num_proc=1)
The call overwrites the dataset in-place, adding a new text column as the third column (after article_id, path).
Quick start (CLI)
biomed-enriched \
--input pubmed_sample \
--xml-root /path/to/pmc/xml/root \
--num-proc 8
Add --output DIR if you prefer writing to a new directory instead of overwriting.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file biomed_enriched-0.1.0.tar.gz.
File metadata
- Download URL: biomed_enriched-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.10.10 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cae47b3d5e9144251c35767c10f7a76a461443243d9d61b626fca75552ea5af
|
|
| MD5 |
562e12f23c0bc035967db0ff435e8209
|
|
| BLAKE2b-256 |
40278eec86084ff1419bc559da90a723b0018823394fcbd85922dcb8d47c0351
|
File details
Details for the file biomed_enriched-0.1.0-py3-none-any.whl.
File metadata
- Download URL: biomed_enriched-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.10.10 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f446d7fb6964c58d69428f5abeb97c89f53b469998796f891b04f2f1f750adf8
|
|
| MD5 |
4e7a5b6d0635d9d46d517110a3ee653f
|
|
| BLAKE2b-256 |
1ec10fdffc1031752fb2017782582570c7b6bc3293d56cd486320e185a13231b
|