界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

data-preparation

data-preparation

【数据与研究】Prepare DeepKE data for supervised formats, NER weak supervision, and RE distant supervision.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: data-preparation description: "Prepare DeepKE data for supervised formats, NER weak supervision, and RE distant supervision." disable-model-invocation: true metadata: disco-role: operating license: MIT

DeepKE data preparation

Use this sub-skill when a task asks to prepare or validate data before DeepKE supervised NER, RE, or AE training/prediction. It covers manual annotation schemas, doccano-style exports, conversion into DeepKE text/CSV formats, NER weak supervision from dictionaries, RE distant supervision from triples, train/dev/test split expectations, and data-prep failure diagnosis.

Route by task

What this sub-skill owns

  • DeepKE standard NER txt, json, and docx preparation.
  • DeepKE standard RE and AE-style csv, json, and xlsx conversion where the first row/object keys define the columns.
  • Doccano sequence-labeling exports for NER and relation-labeling exports for RE schema planning.
  • Dictionary-based NER weak supervision into BIO-tagged train/dev/test text files.
  • Distant-supervision RE relation assignment from (head, tail, relation) triples.
  • Validation gotchas that commonly produce unusable DeepKE datasets.

What this sub-skill does not own

  • Model architecture selection, Hydra config tuning, or running DeepKE training; route those to the supervised-extraction sub-skill.
  • LLM instruction-data conversion; route LLM-specific data shaping to the llm-workflows sub-skill.
  • Triple-extraction model output post-processing; route that to the triple-extraction sub-skill.
  • Downloading large corpora, credentials, model checkpoints, or remote annotation services.

Recommended order

  1. Choose the workflow in references/workflows.md.
  2. Check the target schema in references/data-formats.md.
  3. Run the smallest applicable bundled script command first.
  4. Inspect split sizes, labels, offsets, and a few rendered BIO rows before using the data in training.
  5. Use references/troubleshooting.md for nonzero script failures or suspicious outputs.
我的收藏