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

training-and-data-prep

training-and-data-prep

【数据与研究】Guide safe Stanza training, evaluation, and dataset preparation across model families.

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

技能说明

GitHub

name: training-and-data-prep description: "Guide safe Stanza training, evaluation, and dataset preparation across model families." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

Training and Data Prep

Use this sub-skill when you need to prepare corpora or build training and evaluation command plans for Stanza model families.

It covers:

  • tokenizer, MWT, POS, lemma, dependency parsing, NER, constituency, charlm, classifier, lang_identifier, and wl_coref workflows;
  • wrapper scripts under stanza.utils.training;
  • dataset preparation helpers under stanza.utils.datasets;
  • safe command templates that avoid accidental downloads, wandb side effects, or save-dir collisions.

These details were distilled from installed Stanza 1.14.0 training/data utilities, selected tests, CI setup, and command help.

Start here

  1. Read references/cli-reference.md to choose the right entry point.
  2. Run scripts/build_training_command.py --help or scripts/build_training_command.py <task> <name> --mode train to print a safe command template.
  3. Copy or source scripts/config_template.sh to set local data roots and output directories.
  4. Read references/data-preparation.md before moving any corpus files.
  5. Use references/training-workflows.md for direct-module versus wrapper choices.
  6. Use references/troubleshooting.md when a corpus, schema, pretrain, charlm, GPU, or logging step fails.

Boundaries

  • Route pipeline inference and resource loading to pipelines-and-resources.
  • Route raw Document/CoNLL-U manipulation to documents-and-conllu.
  • Route demos and browser-facing rendering to visualization-and-demos.
  • Do not start training or large downloads from this sub-skill.

Bundled helpers

  • scripts/build_training_command.py prints representative python -m command templates, validates task names, and never launches a job.
  • scripts/config_template.sh mirrors the common training environment variables with safe defaults and placeholders.
我的收藏