Gradium × TensorTonic Voice Challenge is open for registration.Register now
35 Problems

Cracking NLP

Master natural language processing from tokenization to large language models. Build the skills for NLP-focused ML interviews.

13 Easy16 Medium6 Hard

Unlock the full study plan

Upgrade to Pro to access the full curriculum.

Upgrade to Pro
5 sections

What you will learn

This plan covers natural language processing from tokenization to Transformer-based models, the topics asked about in NLP-focused ML interviews. It has 35 problems in five sections: text preprocessing, embeddings, sequence models, Transformers for NLP and advanced topics such as evaluation metrics and tokenizer training.

Prerequisites

Python, and some familiarity with neural networks. Cracking Deep Learning covers the model building blocks used here.

The sections, in order

  1. Text preprocessing: tokenization, normalization, regular expressions, padding, stemming and lemmatization, sentence splitting, edit distance and subword vocabularies.
  2. Embeddings and representations: bag of words, TF-IDF, n-gram language models, Word2Vec, GloVe, FastText and sentence embeddings.
  3. Sequence models: named entity recognition, part-of-speech tagging, text classification, language modeling and spell correction.
  4. Transformers for NLP: masked language modeling, next sentence prediction, token classification, span extraction, beam search and sampling.
  5. Advanced NLP: perplexity, MinHash deduplication, BLEU and ROUGE, tokenizer training, document ranking and byte-pair encoding.

Where to go next

See how these ideas are used in large language models in Language Modeling from Scratch, or build a retrieval system in RAG from Scratch.