liveBook · Manning

scispaCy

As explained in Knowledge Graphs and LLMs in Action

scispaCy is a Python library providing natural-language-processing models and pipelines specialized for scientific and biomedical text.

scispaCy is a Python library built on spaCy for biomedical natural-language processing and named entity disambiguation. It recognizes medical mentions, proposes knowledge-base candidates, and ranks them using surrounding context. section 8.0 section 7.2

A typical scispaCy disambiguation pipeline proceeds through three stages:

  • Select candidate entities from a knowledge base such as UMLS. section 7.2
  • Rank candidates using contextual words surrounding each recognized mention. section 7.2
  • Integrate the selected entity with ontology identifiers, terminology, classifications, and coding standards. section 7.2

Disambiguating Zika mentions

A pipeline using en_core_sci_md and the UMLS linker recognizes “Zika virus,” “congenital Zika syndrome,” and “Zika virus infection,” returning ranked UMLS candidates for each mention. The selected entities can then be stored with mention positions, aliases, definitions, and types. section 7.6.3

scispaCy is strongest when contextual wording supports disambiguation, but it remains biomedical-domain-specific, is difficult to update with new terminology, and does not exploit relationships or paths between knowledge-base entities. section 8.1

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Implements candidate selection, contextual ranking, ontology integration, and Neo4j ingestion, while stopping short of graph-path reasoning.
Examples
Uses Zika terminology, ranked UMLS candidates, entity metadata dictionaries, and graph-loading queries as implementation examples.
What it assumes
Assumes Python and NLP pipeline familiarity while demonstrating biomedical entity linking, UMLS identifiers, and graph ingestion.
What you can do after
Apply it via Python to produce ranked biomedical entity links and load enriched mentions and entities into Neo4j.
How it connects
Connects spaCy, named entity disambiguation, UMLS, domain ontologies, knowledge graphs, and Neo4j.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Knowledge Graphs and LLMs in Action. The section links point to the parts of the book it draws on.