CourseNatural Language Processing: The Complete Course · Course guide · part 1 of 73
Part 1 · Course guide

Natural Language Processing: The Complete Course

5 min read·14 Oct 2026

How computers read text, from characters and regular expressions to word vectors, transformers and large language models, measured on one real-shaped inbox from the first lesson to the last.

You build one thing: a service that reads the customer inbox of Tidewell Cycles, a bike shop and repair workshop in Bristol that started delivering to Germany, Spain and France in July. It cleans each message, pulls out the order number, product and date, routes the message to the right person in four languages, suggests the right help-centre article, summarises long threads and tells the owner each Monday what customers are unhappy about. Every method in the course, from a regular expression to a hosted language model, is scored on the same 80 hand-written messages, so you end with one honest comparison of accuracy, speed and cost. Tidewell is fictional and its data is simulated; every lesson also opens with a real, cited case.

Who this course is for

You can write basic Python: variables, loops, functions, lists and dictionaries, and running a notebook. You do not need any machine learning or NLP background.

You are...Start at
New to NLPModule 1, and go in order
New to PythonThe Python course first
Comfortable with regex and text cleaningModule 2, or Module 4 if you know tokenisers
A data scientist who has trained text classifiersModule 5 (evaluation), then Modules 6 and 7
An engineer who mostly calls LLM APIsModule 4, Module 5, then Module 10 to see where a cheaper model wins
Working on multilingual textModule 9, after Modules 4 to 6

Every module's README lists what you need to know before starting it, so you can check whether it is safe to skip the one before.

What you need

  • A Google account, to run code in Google Colab. Nothing to install.
  • Nothing else for Modules 1 to 9: every model there runs inside the notebook, with no key.
  • For Module 10 and a few optional calls before it, one free API key from Groq or Google Gemini, or no key at all if you run a model on your own computer with Ollama.
  • For Module 7's fine-tuning, Colab's free T4 GPU helps; there is a CPU path too.

Setup takes about ten minutes: course-guide/02-setup-colab-and-llm-providers.md.

The modules

#ModuleWhat you add to the inbox serviceNeeds first
1Text as Data and RulesThe shared data, text cleaning, order numbers, dates and prices found with regular expressions, redaction, and the rule router every later model must beatPython
2Tokenisation and Word NormalisationWord, sentence and subword tokenisers, stop words, stemming and lemmatisation, measured on the routerModule 1
3Linguistic Structure: Tags, Parses and EntitiesA spaCy pipeline and an entity extractor for products, order numbers, dates and money, scored at entity levelModule 2
4Text as Vectors and ClassificationBag of words, n-grams and TF-IDF, and the first trained intent classifiers (naive Bayes, logistic regression)Modules 1 and 2
5Evaluation, Sentiment and TopicsOne evaluation report for every model, tuning without leakage, abstaining, sentiment and topics over time for the Monday reportModule 4
6Word and Sentence Embeddingsword2vec and fastText, sentence embeddings, and help-centre search with BM25, dense vectors and FAISSModules 4 and 5
7Sequence Models and Transformers with Hugging FacePipelines, tokenisers, zero-shot classification and a fine-tuned DistilBERT intent modelModules 4 to 6
8Extraction, Question Answering and SummarisationRepair-booking records validated with pydantic, a help-centre answer finder, thread summariesModules 3, 6 and 7
9Translation, Multilingual NLP and Evaluating GenerationLanguage identification, MarianMT translation, multilingual routing, BLEU, chrF and ROUGEModules 5 to 8
10LLMs for NLP, and Responsible NLPOne client for three providers, LLM classification and extraction, the bake-off with a cost table, a hybrid router and a name-swap fairness checkModules 4, 5 and 7
11CapstoneThe whole service end to end in one of three tracks, with shared evidence: scores on the hand-written test set, a cost table, a fairness check, a model card and testsThe modules your track builds on

36 lessons, 240 topics (185 Essential, 48 Recommended, 7 Optional). Each taught module ends with a lab and an incident file.

How each lesson works

Every lesson is a walk through one Tidewell example, one picture at a time:

  1. The situation: a specific problem in the inbox.
  2. A real case, first: something that really happened, from a published paper, write-up or report, cited.
  3. The idea: fifteen to thirty figures, one idea each, one running example.
  4. Run it: code with a walkthrough of every line.
  5. Break it: a failure you cause on purpose.
  6. In production: what teams do with this at scale.
  7. Check yourself: questions, one exercise, key terms and sources.

Each module ends with a lab (a guided piece of the inbox service) and an incident file (a real, published failure replayed in the Tidewell inbox and fixed). Every output shown in the course comes from a real run. More detail: course-guide/01-how-this-course-works.md.

The tools you will use

Python throughout, everything open source apart from the hosted model services. Plain Python and regex and ftfy for text; NLTK and spaCy for tokens, tags, parses and entities; scikit-learn for vectors, classifiers and metrics; gensim for topics and word vectors; sentence-transformers, rank_bm25 and FAISS for search; Hugging Face transformers and datasets for pretrained and fine-tuned models; pydantic for records; sacreBLEU and rouge-score for generated text; LangChain in Module 10 to call Groq, Gemini or Ollama with the same code. Each mechanism is built by hand first, then with the library.

Course guide

FileRead it when
01-how-this-course-works.mdBefore your first lesson
02-setup-colab-and-llm-providers.mdBefore you run any code; also the pinned libraries and the run-locally steps
03-the-tidewell-inbox.mdTo meet the shop, the people, the products, the policy, the dates and the five jobs
06-shared-data.mdTo see the Tidewell data every module reuses, and the code that makes it
04-style-guide.mdOnly if you are writing or editing lessons
05-image-style-guide.mdOnly if you are drawing the course figures

Where other courses go deeper

This course uses transformers and language models as tools for text jobs. For depth elsewhere:

  • How a transformer works inside, layer by layer: the Transformers course.
  • Prompting, structured outputs, evaluation and running language models in production: the Large Language Models course.
  • Retrieval pipelines (chunking, vector stores, hybrid search, reranking): the RAG course. Module 6 here covers search over 24 articles only.
  • NLP inside a wider AI application, with web services and deployment: Module 5 of the AI Engineering course.

The one measure

Which method does each job well enough, at what cost, and how do you know? Almost everything in this course exists to answer that with numbers from the same 80 hand-written messages.