Word Embeddings

Turning words into vectors whose geometry means something -- and the tokenizer underneath.

Module 03.8 · Advanced
Free

9h · 12 lessons · 1 challenge

Before this: Recurrent Networks & Sequence Models

About this module

A model cannot read a word, so something has to turn it into a vector. This module covers both halves: the tokenizer that decides what a unit of text even is, which none of the source courses teaches, and the embedding that gives that unit a position in space.

Then what that space is like: analogies, the embedding matrix, word2vec and negative sampling, GloVe, and the biases that come along with the corpus.

After this module you can

12 lessons

Lesson 1
1Characters, words, subwords and bytes
Kind
Concept
Length
45 min
Lesson 2
2Implement byte-pair encoding
Kind
Lab
Length
70 min
Lesson 3
3Word representation and featurized embeddings
Kind
Concept
Length
45 min
Lesson 4
4Properties of embeddings, and the analogy task
Kind
Concept
Length
45 min
Lesson 5
5The embedding matrix
Kind
Concept
Length
40 min
Lesson 6
6word2vec, skip-gram and negative sampling
Kind
Concept
Length
50 min
Lesson 7
7GloVe, and the geometry of meaning
Kind
Concept
Length
45 min
Lesson 8
8Using and transferring pretrained embeddings
Kind
Concept
Length
40 min
Lesson 9
9Sentiment classification with embeddings
Kind
Concept
Length
40 min
Lesson 10
10Debiasing word embeddings
Kind
Concept
Length
45 min
Lesson 11
11Embedding Arithmetic: find the analogy
Kind
Interactive
Length
30 min
Lesson 12
12Checkpoint: tokenization and its consequences
Kind
Checkpoint
Length
25 min

The challenge: Embedding Arithmetic

Twenty analogies solved by vector arithmetic. Some of them fail -- say why before you are shown.

Worth 400 XP.

Related modules

All modules
Attention & the Transformer
11h · 13 lessons
Calculus & Optimization
9h · 11 lessons