Datasets:
PMID stringlengths 2 8 | class stringclasses 2
values | probability float64 0 1 |
|---|---|---|
10006576 | research | 0.009018 |
1001616 | research | 0.004103 |
10022908 | research | 0 |
10022914 | research | 0 |
10022921 | research | 0 |
10023445 | research | 0 |
10023688 | research | 0 |
10024466 | research | 0.000005 |
10026133 | research | 0.000001 |
1002689 | research | 0.000001 |
10027563 | research | 0 |
10028968 | research | 0 |
10037138 | research | 0 |
10037782 | research | 0 |
10038123 | research | 0.017957 |
10045023 | research | 0.192721 |
10047518 | non-research | 0.999999 |
10047531 | non-research | 0.999987 |
10047533 | non-research | 0.999952 |
10047584 | non-research | 0.999969 |
10048340 | research | 0.000002 |
10049310 | research | 0 |
10049813 | research | 0 |
10051670 | research | 0 |
10058782 | research | 0.000247 |
10061447 | research | 0.019173 |
10064054 | research | 0.000001 |
10064072 | research | 0.001174 |
10064082 | research | 0 |
10064722 | research | 0.000443 |
10069073 | research | 0 |
10071752 | non-research | 0.999064 |
10072321 | research | 0 |
10072350 | non-research | 0.999998 |
10072359 | non-research | 0.999997 |
10072422 | research | 0 |
10072581 | research | 0 |
10073696 | research | 0 |
10074376 | research | 0 |
10075573 | non-research | 0.999993 |
10076809 | research | 0.000052 |
10076935 | research | 0 |
10077641 | research | 0 |
10077864 | research | 0 |
10079228 | research | 0 |
10079245 | research | 0.000001 |
10080190 | research | 0 |
10082973 | research | 0 |
10084700 | research | 0 |
10087275 | research | 0.00004 |
10089312 | non-research | 0.905352 |
10089344 | research | 0.000053 |
10089512 | research | 0.00007 |
10090721 | research | 0.000001 |
10092108 | research | 0 |
10094464 | research | 0.000001 |
10094827 | research | 0.000002 |
10095088 | research | 0 |
10095109 | research | 0.000057 |
10096060 | research | 0.000052 |
10097132 | research | 0 |
10098140 | non-research | 1 |
10098410 | non-research | 0.999911 |
10098798 | research | 0.000007 |
1009922 | research | 0.000031 |
10099485 | research | 0.000149 |
10101271 | research | 0 |
10102038 | research | 0 |
10103008 | research | 0 |
1010468 | research | 0 |
1012267 | research | 0.000063 |
10179780 | non-research | 0.999332 |
10188721 | research | 0 |
10190895 | research | 0 |
10194385 | research | 0 |
10194444 | research | 0.000002 |
10194469 | research | 0 |
10195127 | research | 0 |
10196129 | research | 0.000005 |
10197816 | research | 0 |
10198115 | research | 0.001486 |
10199008 | research | 0 |
10199404 | research | 0.000035 |
10199952 | research | 0 |
10200511 | research | 0.000003 |
10200573 | research | 0.000005 |
10200961 | research | 0.000003 |
10201996 | research | 0.000008 |
10202044 | research | 0.001974 |
10202939 | research | 0 |
10206262 | research | 0 |
10206722 | research | 0 |
10206988 | research | 0 |
10207899 | non-research | 0.999064 |
10208433 | research | 0.000028 |
10209025 | research | 0 |
10209108 | non-research | 0.999982 |
10210635 | research | 0 |
10211820 | research | 0.000905 |
10212141 | research | 0 |
PubMed Research Classifier Labels
Private lookup table of research / non-research labels for PubMed IDs.
| PyPI package | pubmed-research-classifier (≥ 0.3.0 for Hub lookup) |
| This dataset | Hub release v1.0.0 (labels scored with package 0.2.0 weights) |
| Docs | Package README on PyPI |
Coverage (v1.0.0): labels for all OpenAlex works that have a PubMed ID (PMID), drawn from the OpenAlex corpus snapshot used in this project, with PubMed-linked works up to April 2026. Every distinct PMID in that slice is included (30,426,295 unique IDs). Works without a PMID are out of scope for this table.
This Hub dataset is versioned independently (v1.0.0, v1.1.0, …) so future
classifier / corpus refreshes can ship updated label tables without breaking
consumers pinned to an older revision.
| Field | Version |
|---|---|
| Dataset release | v1.0.0 (this revision) |
| Corpus coverage | All OpenAlex works with PMID, up to April 2026 |
| Label model (weights) | pubmed-research-classifier==0.2.0 |
| Recommended client | pubmed-research-classifier>=0.3.0 ([cache] extra) |
| Decision rule | research if P(non-research) < 0.75, else non-research (τ = 0.75) |
| Unique PMIDs | 30,426,295 |
Dataset structure
| Column | Type | Description |
|---|---|---|
PMID |
string | Numeric PubMed ID (no pmid: / URL prefix) |
class |
string | research or non-research |
probability |
float | Model estimate of P(non-research) |
Class counts in v1.0.0:
class |
Count |
|---|---|
research |
24,113,963 |
non-research |
6,312,332 |
Files:
data/v1.0.0/labels.csv
Later releases add data/v1.1.0/, data/v2.0.0/, etc., each exposed as a
dataset config with the same three columns.
How to use with pubmed-research-classifier (≥ 0.3.0) — recommended
Install the optional cache extra and set a Hub token with read access to this private dataset:
pip install "pubmed-research-classifier[cache]>=0.3.0"
export HF_TOKEN=hf_xxxxxxxx # or: huggingface-cli login
from pubmed_research_classifier import (
load_label_cache,
lookup_pmid,
classify_pmid,
)
# First call downloads v1.0.0 (~1.2 GB) and builds a local DuckDB index
# under ~/.cache/pubmed_research_classifier/ (override with PUBMED_RC_CACHE_DIR).
cache = load_label_cache(revision="v1.0.0")
print(len(cache)) # 30426295
lookup_pmid("10006576")
# {"PMID": "10006576", "class": "research",
# "probability": 0.009..., "source": "cache"}
# Cache hit → Hub row; miss → run the bundled MLP (needs classify() fields)
classify_pmid("10006576")
classify_pmid(
"99999999",
record={
"title": "...",
"abstract": "...",
"pub_types": ["Journal Article"],
"n_authors": 3,
"n_refs": 12,
},
)
Batch lookup (order-preserving):
rows = cache.lookup_many(["10006576", "10047518", "99999999"])
# [dict, dict, None]
classify(...) without the cache still works for raw text / embeddings
(see the PyPI README).
Monthly Hub refresh (maintainers)
Needs a token with write access. Merge a CSV of new PMIDs
(PMID,class,probability) into the previous table and upload a new revision:
pubmed-rc-publish-labels \
--new-csv new_pmids.csv \
--base-revision v1.0.0 \
--new-revision v1.1.0 \
--upload
Or from Python: publish_label_revision(..., upload=True).
How to load with 🤗 Datasets (without the package)
Requires a Hugging Face token with access to this private dataset.
from datasets import load_dataset
# Default config = latest published table (currently v1.0.0)
ds = load_dataset(
"EMBO/pubmed-research-classifier",
token=True, # or pass a token string / use HF_TOKEN
)
# Pin a release
ds = load_dataset(
"EMBO/pubmed-research-classifier",
name="v1.0.0",
token=True,
)
print(ds["train"][0])
# {'PMID': '10006576', 'class': 'research', 'probability': 0.009...}
For large joins, prefer DuckDB / Polars on the CSV (or the package’s local DuckDB file) rather than building a giant Python dict.
Provenance
v1.0.0 covers all OpenAlex works sourced from PubMed (i.e. with a PMID) up to April 2026 — one row per distinct PMID in that OpenAlex/PubMed-linked slice.
Labels were computed from OpenAlex-derived work tables (people works, life-science author works, and a large ModernBERT-embedded OpenAlex shard) by:
- Building per-PMID features (ModernBERT title/abstract embeddings + PubMed metadata).
- Running
pubmed-research-classifier==0.2.0in embedding mode on GPU. - Exporting the unique-PMID result table uploaded here.
Local mirror of this file (EMBO DGX):
/raid/shared/apply-classify-article/data/pubmed-research-classifier_cached-results_0.2.0.csv
Versioning policy
| Hub dataset tag / config | Meaning |
|---|---|
v1.0.0 |
First EMBO release of the PMID label table (scored with classifier 0.2.0) |
v1.x.0 |
Additive / corrective corpus updates (same schema); use package ≥ 0.3.0 to load |
v2.0.0 |
Breaking schema or new primary classifier generation |
Always pin revision= / name= (Hub) or load_label_cache(revision=...) (package)
in production code.
License / access
Private EMBO dataset. Do not redistribute outside authorised Hugging Face accounts/organisations. Contact EMBO data owners for access requests.
- Downloads last month
- 37