scispaCy — Biomedical & Scientific NLP Models
Allen AI's Apache-2.0 spaCy models for biomedical text with UMLS, MeSH, GO, HPO, and RxNorm entity linking and NER for genes, diseases, chemicals, and proteins.
scispaCy — Biomedical & Scientific NLP Models
scispaCy by AllenAI provides spaCy-compatible NLP models and pipelines specifically trained on biomedical and scientific text (PubMed, MIMIC-III, BC5CDR, JNLPBA). It includes entity linkers for major biomedical ontologies — UMLS, MeSH, Gene Ontology, Human Phenotype Ontology, and RxNorm.
Key Features
- 5 pre-trained spaCy models (sm/md/lg/transformer variants) for biomedical NER
- Entity types: disease, chemical, gene, protein, cell line, DNA, RNA, cell type
- Entity linkers: UMLS (3M+ concepts), MeSH, GO, HPO, RxNorm
- Abbreviation detection (biomedical abbreviations expand correctly)
- Fully compatible with the spaCy ecosystem (stanza, transformers pipeline)
Quick Start
pip install scispacy
pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.4/en_core_sci_lg-0.5.4.tar.gz
import spacy, scispacy
from scispacy.linking import EntityLinker
nlp = spacy.load("en_core_sci_lg")
nlp.add_pipe("scispacy_linker", config={"resolve_abbreviations": True, "linker_name": "umls"})
doc = nlp("Metformin is used to treat type 2 diabetes mellitus.")
for ent in doc.ents:
print(ent.text, ent._.kb_ents[:2])
npx ai-supply add scispacy-biomedical-nlp
Curated mirror of the open-source scispaCy (Apache-2.0). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/scispacy-biomedical-nlp/check). Click a policy:
Consume scispaCy — Biomedical & Scientific NLP Models programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/scispacy-biomedical-nlp
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/scispacy-biomedical-nlp/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add scispacy-biomedical-nlp
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/scispacy-biomedical-nlp/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "scispacy-biomedical-nlp" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.