计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
corpora-and-vector-spaces【效率与协作】Guides Gensim dictionaries, bag-of-words vectors, streaming corpora, corpus persistence formats, and preprocessing workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task starts from raw text, token lists, corpus files, Wikipedia dumps, or sparse vector streams and needs Gensim's corpus/vector-space abstractions before modeling or similarity indexing.
Dictionary, call doc2bow, or filter
tokens by document frequency.gensim.utils.simple_preprocess or gensim.parsing.preprocess_string.dictionary = corpora.Dictionary(tokenized_documents) or stream token
lists into the constructor.dictionary.doc2bow(tokens).filter_extremes,
filter_tokens, filter_n_most_frequent, then compactify when needed.serialize() method and reload with
the matching corpus class.Read references/workflows.md for end-to-end corpus
recipes and references/api-reference.md for
verified signatures and parameter notes. Read
references/data-formats.md when selecting an IO
format or handling compression/metadata.
corpora.Dictionary(documents=None, prune_at=2000000) builds token-id and
frequency mappings.Dictionary.doc2bow(document, allow_update=False, return_missing=False) takes
an iterable of string tokens.Dictionary.filter_extremes(no_below=5, no_above=0.5, keep_n=100000, keep_tokens=None) removes rare/common tokens and limits vocabulary size.corpora.MmCorpus.serialize(fname, corpus, id2word=None, index_fname=None, progress_cnt=None, labels=None, metadata=False) writes a lazy corpus with
optional offset metadata.TextCorpus, TextDirectoryCorpus, and WikiCorpus help turn text files or
XML dumps into streamed vectors.Run scripts/corpus_io_smoke.py to verify that the
target environment can build a dictionary, serialize/reload Matrix Market data,
and process a tiny local text-directory corpus without network access.
../topic-modeling-and-transformations/SKILL.md.../embeddings-and-phrases/SKILL.md.../similarity-and-search/SKILL.md.../data-and-cli-utilities/SKILL.md.Dictionary when the model needs stable token ids and document
frequencies. Use HashDictionary only when bounded hash ids are acceptable.TextDirectoryCorpus when files are already laid out in directories and
optional filename filtering matters.WikiCorpus or the data/CLI utilities only after acknowledging full dump
size, compression, and runtime constraints.Read references/troubleshooting.md for raw
string doc2bow errors, empty vectors, dictionary drift, malformed corpus files,
encoding/compression problems, and large Wikipedia dump constraints.