executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
corpora-and-vector-spacesGuides Gensim dictionaries, bag-of-words vectors, streaming corpora, corpus persistence formats, and preprocessing workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.