AGENT SKILL

scispacy

Routes scispaCy biomedical spaCy component workflows, entity-linking workflows, and project data/evaluation workflows.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
scispacy
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Routes scispaCy biomedical spaCy component workflows, entity-linking workflows, and project data/evaluation workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

scispaCy

scispaCy is a biomedical/scientific spaCy package. Use this skill when you need to load its models, add its custom pipes, build entity linkers, or run the project data/evaluation helpers.

Quick start

Install the package

For general use:

python -m pip install scispacy

For development inside a local checkout:

python -m pip install -e .

Install a model package

scispaCy models are installed separately from the library. Start with one of:

python -m spacy download en_core_web_sm
python -m pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.4/en_core_sci_sm-0.5.4.tar.gz

See references/installation.md for the full model list and the known-good version pairing used in this checkout.

Minimal import check

Use an isolated import check after installation:

python -I -c "import scispacy, spacy, scispacy.abbreviation, scispacy.hyponym_detector, scispacy.linking; print(scispacy.__version__)"

If you need a fuller smoke, run scripts/smoke_scispacy.py.

Route map

1) Biomedical text-processing components

Use sub-skills/pipeline-components/ for:

  • combined_rule_tokenizer
  • pysbd_sentencizer
  • abbreviation_detector
  • hyponym_detector
  • WhitespaceTokenizer
  • the combined-rule pipeline helper

This route is the right one when the task is about tokenization, sentence boundaries, abbreviation expansion, or Hearst-pattern hyponym extraction.

2) Entity linking and knowledge bases

Use sub-skills/entity-linking/ for:

  • scispacy_linker
  • CandidateGenerator
  • KnowledgeBase and the built-in KB subclasses
  • create_tfidf_ann_index
  • UMLS semantic-type helpers and cache-backed KB loading

This route is the right one when the task is about UMLS/MeSH/GO/HPO/RxNorm linking, custom KBs, candidate generation, or ANN index creation.

3) Project data and evaluation workflows

Use sub-skills/project-workflows/ for:

  • MedMentions and BIO TSV readers
  • NER evaluation helpers
  • UMLS export to JSONL
  • frequency counting / vocabulary conversion
  • package metrics summaries
  • project.yml / configs/*.cfg workflow assembly

This route is the right one when the task is about training-data conversion, evaluation, or model packaging rather than the runtime pipes.

Shared references

  • Read references/installation.md when you need install commands, model selection, or the verified version pairing.
  • Read references/troubleshooting.md when install, import, or model-version problems appear.
  • Read references/repo-provenance.md when checking whether this skill is still aligned with the current repository.
  • Read references/repo-routing-metadata.json when you need the router metadata used during import and discovery.

Shared helper scripts

  • Run scripts/smoke_scispacy.py to check the installed package, biomedical components, whitespace tokenization, and a tiny linker path.

Practical selection guidance

  • If the request names tokenization, sentence splitting, abbreviation detection, or hyponym detection, stay in pipeline-components.
  • If the request names scispacy_linker, KBs, ANN indices, UMLS, or a linker threshold, stay in entity-linking.
  • If the request names MedMentions, BIO TSV, project.yml, evaluate_ner, export_umls_json, or frequency conversion, stay in project-workflows.
  • If the request is only about installing the library or choosing a model package, start with references/installation.md and the smoke script.

Freshness check

Use references/repo-provenance.md to confirm the checkout and package snapshot before treating this skill as current for a different repository state.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351