← All models · Biomedical NER · MiniLM

use case · multi-model

Multi-model: group mentions by meaning

NER finds mentions but treats "myocardial infarction", "MI" and "heart attack" as three unrelated spans. Linking them needs meaning, not spelling — so compose two models: biomedical NER extracts every clinical mention, then all-MiniLM-L6 embeds each mention in its sentence and groups the ones that sit close together in vector space. The result is a lightweight concept-normalisation / entity-linking pass — the first step toward mapping free text to a coding system — entirely on your device.

Two models, both on-device

Biomedical NER (~67 MB) extracts; MiniLM embeddings (~25 MB) groups. Each auto-initialises from cache when present.

Grouping uses a similarity threshold you control — slide it up for stricter groups, down for looser ones. Embedding the mention in its sentence gives context, so "MI" and "heart attack" can land near "myocardial infarction" even though they share no words. It's a demo-grade normaliser, but the shape is exactly how clinical concept-linking pipelines are built. Research/education only.

← Wild · Back to Biomedical NER · MiniLM →