Module 5 of 13

Word Embeddings

Lessons

About This Module

Sparse representations such as bag-of-words treat every word as an unrelated symbol, so "good" and "great" look as different as "good" and "refrigerator". Word embeddings fix this by giving each word a short, dense vector of numbers, learned from text, so that words used in similar contexts end up close together.

The lessons begin with the core idea, then look at word2vec, which learns embeddings by predicting words from their neighbours using either CBOW or skip-gram. Next comes GloVe, which learns from global co-occurrence counts, and subword embeddings such as fastText, which cope with spelling variations and unseen words.

The module ends with a full Stanford lecture on word vectors. Keep one limitation in mind as you watch: these embeddings give each word a single vector whatever the context. That gap is addressed by the sequence models later in the course. Watch the lessons in order, then continue on to Text Classification, where you will put these vectors to work.

Lessons

6 videos
01

NLP for Developers: Word Embeddings

A Rasa explainer on what word embeddings are, how they work, when they are used and some common errors.

Video 6min
02

Word Embedding and Word2Vec, Clearly Explained!!!

StatQuest shows how a simple neural network learns embeddings from context, covers CBOW and skip-gram, and explains how negative sampling cuts training cost.

Video 16min
03

Word Embeddings Explained: Word2Vec vs. GloVe (Skip-Gram, CBOW & Math)

A deeper comparison of the two most important embedding techniques, including the maths behind each.

Video 19min
04

Understanding Word Embeddings 3: GloVe

Part of the Rasa Algorithm Whiteboard series. Explores GloVe embeddings and why word embeddings are genuinely hard to interpret.

Video 19min
05

Subword Embeddings and Spelling

Uses fastText to show how subword embeddings help with spelling mistakes and words the model has never seen.

Video 12min
06

Stanford CS224N: Introduction and Word Vectors (Winter 2019, Lecture 1)

The first lecture of the Stanford NLP with Deep Learning course, covering how word meaning is represented and introducing the word2vec algorithm.

Video 1h 21min