Back to course

Word Embeddings

Word Embeddings

Word embeddings are dense vector representations of words that capture semantic meaning. Words with similar meanings are mapped to nearby points in vector space.

Key Approaches

  • Word2Vec: Learns word relationships from context windows
  • GloVe: Uses global word co-occurrence statistics
  • FastText: Handles subword information, works with rare words
  • Contextual Embeddings: BERT, GPT — word meaning changes based on context

The Power of Embeddings

Embeddings capture semantic relationships mathematically. The classic example: King - Man + Woman ≈ Queen. This arithmetic on word vectors shows that the model has learned abstract concepts about gender and royalty.

Modern contextual embeddings go further — the word "bank" gets different vectors depending on whether the sentence is about finance or a river bank.

Sign in and enable JavaScript to track completion.