AGENT SKILL

supervised-extraction

Guide DeepKE supervised NER, RE, AE, EE, cnSchema, and scenario-specific extraction workflows.

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

01 前言 Front Matter

name
supervised-extraction
license
MIT
metadata
{ "disco-role": "operating" }
description
Guide DeepKE supervised NER, RE, AE, EE, cnSchema, and scenario-specific extraction workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

DeepKE supervised extraction

Use this sub-skill when a task asks to train, predict with, configure, or troubleshoot DeepKE's classic supervised extraction workflows: named entity recognition (NER), relation extraction (RE), attribute extraction (AE), event extraction (EE), cnSchema off-the-shelf NER/RE, and the standard, few-shot, multimodal, document-level, or cross-domain variants.

Route by intent

  • Choose the right task and scenario: read references/workflows.md for task selection and end-to-end recipes.
  • Prepare or inspect input files and Hydra YAMLs: read references/data-and-config.md for columns, split names, config knobs, checkpoint fields, and path-resolution caveats.
  • Pick a model family or import surface: read references/model-overview.md for the scenario/model table and DeepKE package layout.
  • Debug installation, model, dataset, GPU, or workflow failures: read references/troubleshooting.md before changing code or rerunning long training.
  • Check the local runtime safely: run scripts/check_supervised_env.py to inspect installed imports, CUDA visibility, and optional data/checkpoint path expectations without training or downloading.

Owns

  • Standard NER with BERT, BiLSTM-CRF, and W2NER.
  • Few-shot NER with LightNER-style prompt tuning and cross-domain NER with CP-NER-style prefix transfer.
  • Multimodal NER and RE with text plus detected/grounded visual objects.
  • Standard RE and AE with CNN/RNN/Capsule/GCN/Transformer/LM families.
  • Few-shot RE, document-level RE, and cnSchema quick-load NER/RE.
  • Standard EE trigger and role extraction pipelines, including the DEGREE-style variant as a reference-only path.

Does not own

  • Creating or converting datasets from annotation exports; use the sibling data-preparation sub-skill for conversion and weak/distant supervision helpers.
  • PRGC, PURE, ASP, MT5, or other triple-extraction workflows; use the sibling triple-extraction sub-skill.
  • DeepKE-LLM, instruction KGC, OpenAI/API workflows, or OneKE-style large-model inference; use the sibling llm-workflows sub-skill.
  • MCP server/client deployment; use the sibling mcp-tools sub-skill.

Quick operating pattern

  1. Classify the request by task (NER, RE, AE, EE) and scenario (standard, few-shot, multimodal, document, cross-domain, cnSchema).
  2. Confirm whether the user wants training, prediction, config diagnosis, or data validation.
  3. Verify the environment with scripts/check_supervised_env.py when imports, CUDA, model files, or data layout are uncertain.
  4. Read the workflow recipe and data/config reference for the selected scenario.
  5. Treat long training, checkpoint downloads, GPU-only multimodal work, and DEGREE/EE variants as explicit resource-dependent operations; do not silently start them without user approval.

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