What Is Word2Vec? Learning Word Vectors from Context
CBOW, Skip-gram, Gensim setup, uses, and interpretation limits.
Word2Vec learns numeric word vectors from neighboring-word patterns. Words used in similar contexts often get nearby vectors, useful for similarity search or downstream features. CBOW predicts a center word from its context; Skip-gram predicts surrounding words from the center. Gensim 4.x trains on tokenized sentences with choices such as vector_size, window, min_count, and epochs. Use a domain-relevant corpus and evaluate on held-out examples. Standard Word2Vec usually has one fixed vector per word: proximity does not prove synonymy, truth, or causation, and corpus bias can be reflected. Rare or unseen words may be weak or missing; word order and context-dependent senses are not represented well. Consider fastText for subwords or contextual embeddings for context-specific meaning. The code sample is illustrative and was not run.