计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
embeddings-and-phrases【效率与协作】Guides Gensim Word2Vec, FastText, Doc2Vec, KeyedVectors, and phrase-detection workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task needs dense vectors for words, documents, or phrases rather than sparse bag-of-words topic models.
Word2Vec, FastText, or Doc2Vec.KeyedVectors for similarity lookup or vector export/import.Phrases or FrozenPhrases.TaggedDocument iterables that emit token lists.vector_size, min_count,
workers, and epochs for smoke tests.model.wv for word vectors and model.dv/inference for document vectors.KeyedVectors if you only need lookup/similarity.Phrases when adjacent token combinations should be discovered before
embedding or downstream retrieval.Read references/word2vec-fasttext-doc2vec.md
for model-specific recipes, references/keyedvectors-and-formats.md
for vector-file handling, and references/phrases.md for phrase detection.
Word2Vec(sentences=None, corpus_file=None, vector_size=100, alpha=0.025, window=5, min_count=5, max_vocab_size=None, sample=0.001, seed=1, workers=3, min_alpha=0.0001, sg=0, hs=0, negative=5, ns_exponent=0.75, cbow_mean=1, hashfxn=hash, epochs=5, null_word=0, trim_rule=None, sorted_vocab=1, batch_words=10000, compute_loss=False, callbacks=(), comment=None, max_final_vocab=None, shrink_windows=True).FastText(...) shares the Word2Vec-style API and adds min_n, max_n, and
bucket for subword vectors and OOV handling.Doc2Vec(documents=None, corpus_file=None, vector_size=100, dm_mean=None, dm=1, dbow_words=0, dm_concat=0, dm_tag_count=1, dv=None, dv_mapfile=None, comment=None, trim_rule=None, callbacks=(), window=5, epochs=10, shrink_windows=True, **kwargs).KeyedVectors(vector_size, count=0, dtype=numpy.float32, mapfile_path=None).KeyedVectors.load_word2vec_format(fname, fvocab=None, binary=False, encoding='utf8', unicode_errors='strict', limit=None, datatype=numpy.float32, no_header=False).Phrases(sentences=None, min_count=5, threshold=10.0, max_vocab_size=40000000, delimiter='_', progress_per=10000, scoring='default', connector_words=frozenset()).FrozenPhrases(phrases_model).Run scripts/embedding_smoke.py to verify that the
current environment can train tiny Word2Vec, FastText, and Doc2Vec models,
build phrases, and save/load KeyedVectors without network access.
../corpora-and-vector-spaces/SKILL.md.../topic-modeling-and-transformations/SKILL.md.../similarity-and-search/SKILL.md.../data-and-cli-utilities/SKILL.md.Word2Vec when the task needs learned token embeddings and OOV support is
not essential.FastText when subword information or OOV vectors matter.Doc2Vec when the task needs a vector per document or paragraph.KeyedVectors when you only need to store and query vectors, not continue
training.Phrases/FrozenPhrases to add bigrams/trigrams before training or when
phrase tokens should be preserved in later corpora.Read references/troubleshooting.md for
min_count/vocabulary issues, OOV behavior, sentence iterator shape, model.wv
vs full model confusion, persistence format mismatches, and reproducibility
notes.