NLP roadmap
Field 9 of 14. Work through the steps in order: each one explains an idea, points you to one thing to read and gives you a problem to build.
- Steps
- 10
- Problems
- 11
- Learn first
- Deep Learning
- Leads to
- Generative AI
Classical NLP
Text preprocessing & tokenization
Split text into units (words, subwords), normalize case and punctuation. Choices here silently change every downstream result.
Build · Easy · 1 problem
Bag of words & TF-IDF
Represent a document by word counts, weighting words by how rare they are across documents. Simple, fast and still a strong baseline.
Build · Easy · 1 problem
N-gram language models
Predict the next word from the previous n−1 words using counts. Perplexity measures how surprised the model is by real text.
Build · Medium · 1 problem
Word embeddings
Learn dense vectors by predicting nearby words. Words used in similar contexts get similar vectors (king − man + woman ≈ queen).
Build · Medium · 1 problem · case study
Sequence Models
RNNs & LSTMs
An RNN reads a sequence step by step carrying a hidden state. LSTMs add gates so information survives long sequences.
Build · Medium · 1 problem
Seq2seq & attention
An encoder compresses the input, a decoder generates the output. Attention lets the decoder look back at every input position instead of one fixed vector.
Concept · Medium · 1 problem · case study
Transformers
The transformer
Self-attention lets every token look at every other token in parallel. Stacks of attention + MLP blocks with residuals and LayerNorm make the transformer.
Build · Hard · 2 problems
Pretrained models: BERT & GPT
Pretrain on huge text (BERT fills in blanks, GPT predicts the next token), then reuse. Changed NLP from task-specific models to fine-tuning one model.
Concept · Medium · 1 problem · case study
Fine-tuning for tasks
Add a small head on a pretrained model and train on labelled data for classification, entity tagging or QA.
Build · Medium · 1 problem
SpeechElective
Speech recognition
Turn audio into spectrograms and map them to text. Whisper is a transformer trained on 680k hours of audio.
Build · Medium · 1 problem
Capstone project
A tiny GPT trained on your own text, plus a fine-tuned classifier