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
Track this field on the map

Classical NLP

  1. Text preprocessing & tokenization

    Split text into units (words, subwords), normalize case and punctuation. Choices here silently change every downstream result.

    Build · Easy · 1 problem

  2. 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

  3. 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

  4. 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

  1. 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

  2. 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

  1. 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

  2. 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

  3. 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

  1. 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