Agent skill · Data & Analytics

running-zeroshot-ner

Extract arbitrary, custom entity types from clinical or biomedical text with no fine-tuning using OpenMed's GLiNER / GLiNER2 zero-shot support. Use when the user wants to define their own labels on the fly (e.g. Drug, Symptom, Device, Procedure), has no labelled data or a label set not covered by a fine-tuned model, or asks about openmed zero deps/index/infer, the gliner extra, or GLiNER. Pairs adjacent to extracting-clinical-entities (use that for high-accuracy fixed-schema NER) and loading-openmed-models.

Maziyar Panahi4,851★ · 1 repos on radarProfile →
claude-codeApache-2.0
Install
npx skills add maziyarpanahi/openmed --skill running-zeroshot-ner --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 6 KB
Bundled scripts: none
Version: 1.0
Path: skills/running-zeroshot-ner/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 4,851
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Running Zero-Shot NER Zero-shot NER lets you extract entity types you **name at inference time** — no training, no labelled data. OpenMed wraps GLiNER (v1) and GLiNER2 behind a small index + inference layer, exposed via the `openmed zero` CLI and the `openmed.ner` Python API. It runs on-device. ## When to use - Your label set is **custom or evolving** ("Device", "Implant", "Allergen") and no fine-tuned OpenMed model emits exactly those labels. - You have **no labelled data** to fine-tune with. - You need a quick prototype or a one-off extraction over an unusual schema. **When to prefer a fine-tuned model instead** (`extracting-clinical-entities`): for a fixed, well-supported schema (diseases, drugs, anatomy), a fine-tuned OpenMed model is more accurate and faster than zero-shot. Zero-shot trades some accuracy for total label flexibility — use it for coverage of new types, then graduate to a fine-tuned model once the schema stabilises. ## Install ```bash pip install "openmed[gliner]" # pulls GLiNER (and GLiNER2 if a recent gliner is installed) openmed zero deps # diagnostic: prints "GLiNER v1: ok" / "GLiNER v2: ok" ``` `openmed zero deps` only **checks** availability — it does not

What's inside
Steps it walks through
  1. When to use
  2. Install
  3. The two-step workflow: index, then infer
  4. Python API
  5. Writing good labels
  6. Hand-off to / from OpenMed
  7. Edge cases & gotchas
  8. Standards & references
Commands it runs
pip install "openmed[gliner]"   # pulls GLiNER (and GLiNER2 if a recent gliner is installed)
openmed zero deps               # diagnostic: prints "GLiNER v1: ok" / "GLiNER v2: ok"
openmed zero index /models/gliner --output /models/gliner/index.json
openmed zero infer "Patient on insulin glargine via an insulin pump for type 1 diabetes." \
More from openmed
All skills →
About this skill
What does the running-zeroshot-ner skill do?

Extract arbitrary, custom entity types from clinical or biomedical text with no fine-tuning using OpenMed's GLiNER / GLiNER2 zero-shot support. Use when the user wants to define their own labels on the fly (e.g. Drug, Symptom, Device, Procedure), has no labelled data or a label set not covered by a fine-tuned model, or asks about openmed zero deps/index/infer, the gliner extra, or GLiNER. Pairs adjacent to extracting-clinical-entities (use that for high-accuracy fixed-schema NER) and loading-openmed-models.

How do I install it?

Run `npx skills add maziyarpanahi/openmed --skill running-zeroshot-ner --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From maziyarpanahi/openmed, a repository with 4,851 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going