Applied Natural Language Processing
August 14, 2026 ยท View on GitHub
Code for the course notes Natural Language Processing: From Corpus Statistics to Grounded LLMs, which you can read in full at https://nlp.jcrlabz.com.
Read the book
Online at https://nlp.jcrlabz.com, or as a PDF: download the latest build. The PDF is republished from the same source every time the site is, so the two never disagree.
What is here
book/worked-examples/ holds one notebook per worked example. Each reproduces a table
printed in the book, so you can check any number the text claims rather than
take it on trust.
Archive/ holds the demonstration notebooks from earlier runs of the course.
They are kept for reference and are not maintained.
Running an example
Click any notebook below and it opens in Colab. Choose Runtime > Run all.
Every notebook is self contained. The first cell defines everything the example needs and runs in the notebook itself, so there is no data file to fetch and nothing to install beyond what the install cell installs.
Colab opens a notebook from GitHub read only. Click Copy to Drive to keep your changes.
Read the chapter first. The notebook is the check, not the explanation.
The worked examples
About this file
This README and the notebooks in book/worked-examples/ are generated from the book
source and pushed here on every publish, so edits made to them here are
overwritten. Everything else in the repository is edited by hand and is left
alone. Report a problem with an example against the book at https://nlp.jcrlabz.com.