Week 11 • Thursday

Block 107: Word Embeddings: Word2Vec & GloVe Concepts

Understand dense vector representations of words.

Concepts

Code Examples

See exercise below.

Exercise

Use spaCy's medium model to find 5 most similar words to 'king', 'doctor', 'python'. Compute cosine similarity between 'cat'/'dog' and 'cat'/'car' vectors.

Homework

Explain the famous word2vec analogy: king - man + woman ≈ queen. What does this reveal about embeddings?