技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Use BERT-pytorch to build, load, and debug vocabularies and dataset inputs from tab-separated sentence pairs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about corpus layout, vocabulary files, bert-vocab, WordVocab, BERTDataset, or pickle vocab troubleshooting.
bert-vocab or the Python API.WordVocab pickle files.BERTDataset inputs and outputs.corpus_lines value; for small jobs, prefer on_memory=True.scripts/build_vocab_smoke.py when you want a safe tiny fixture that proves both vocab creation and dataset loading.../training/SKILL.md.references/corpus-format.md: corpus layout, special tokens, dataset fields, and the tiny smoke recipe.references/troubleshooting.md: malformed rows, pickle problems, streaming-mode issues, and tokenization mistakes.../training/SKILL.md: follow this route after you have a valid corpus and vocab.scripts/build_vocab_smoke.py: build a tiny vocab, reload it, and inspect one dataset item.../../scripts/make_tiny_corpus.py: create a deterministic two-line corpus fixture for experiments.WordVocab stores special tokens at fixed ids: pad 0, unk 1, eos 2, sos 3, mask 4.BERTDataset.__getitem__ returns bert_input, bert_label, segment_label, and is_next tensors.WordVocab.load_vocab() expects a pickle created by this package, not a text vocabulary.