Library
Speech and Language Processing

Building AI systems

Speech and Language Processing

Dan Jurafsky and James H. Martin · Stanford University · 3rd edition (online draft)

The argument

Jurafsky and Martin's textbook is the standard introduction to natural language processing, computational linguistics and speech. The third edition is a living online draft, now organized around large language models: it starts from words and tokens, builds up through n-gram models, classifiers, embeddings and neural networks, and arrives at transformers, pretraining and post-training, then moves to advanced topics, speech and linguistic structure.

How the book is built

  1. 01

    Volume I: Large language models

    Chapters 1 to 8

    Introduction, words and tokens (with edit distance), n-gram language models, logistic regression and text classification, embeddings, neural networks, transformers and pretraining, and post-training. This is the path from counting words to modern language models.

  2. 02

    Volume II: Advanced LLM topics and tools

    Chapters 9 to 17

    Masked language models, interpretability, information retrieval and RAG, agents (listed on the site as not written yet), machine translation, RNNs and LSTMs, phonetics and speech feature extraction, automatic speech recognition, and text-to-speech.

  3. 03

    Volume III: Annotating linguistic structure

    Chapters 18 to 26

    Sequence labeling for parts of speech and named entities, context-free grammars and constituency parsing, dependency parsing, information extraction, semantic role labeling, lexicons for sentiment, coreference resolution and entity linking, discourse coherence, and conversation.

  4. 04

    Appendices

    Appendices A to K

    Hidden Markov models, naive Bayes classification, Kneser-Ney smoothing, spelling correction and the noisy channel, statistical constituency parsing, context-free grammars, combinatory categorial grammar, logical representations of meaning, word senses and WordNet, PPMI, and frame-based dialogue systems.

Concepts worth keeping

Tokenization

Chapter 2 treats words and tokens, which is how text becomes the units a model sees.

N-gram language models

Chapter 3 introduces predicting the next word from the previous few, the idea that language models still generalize.

Embeddings

Chapter 5 represents words as vectors learned from usage, the base for retrieval and neural NLP.

Transformers and pretraining

Chapter 7 covers the transformer, pretraining and decoding. The site notes that this chapter merged earlier chapters on transformers and pretraining.

Retrieval and RAG

Chapter 11 covers information retrieval and retrieval-augmented generation.

Sequence labeling

Chapter 18 covers tagging parts of speech and named entities, the classic structured prediction task in NLP.

What the author concludes

The book is not a single argument with a conclusion. Its position is that modern NLP is best learned by starting from language models and building outward, while keeping the linguistic structure and speech material that explains why language is hard.

Limits to keep in mind

  • It is a draft. The authors' page lists some chapters as not yet written (agents) or only partly written (interpretability), and updates the text with each release.
  • Chapters change numbering between releases, so cite a dated draft.
  • It is a textbook, not an engineering guide. Production concerns such as serving and monitoring are outside it.

What I take into AI engineering work

  • Use Volume I as the clear reference for how tokenization, embeddings and transformers fit together.
  • Use the RAG chapter alongside AI Engineering when building retrieval systems.
  • Keep the sequence labeling and information extraction chapters for structured extraction tasks.
  • Cite the specific draft date when you reference it.

Sources

My note

The book is clear that text has to become tokens and vectors before any model sees it, and that those choices matter. Language models predict the next token, and most modern capabilities are built on that. Transformers, pretraining and decoding are covered as one connected chapter, and speech adds sound, timing and recognition errors on top.

Next bookHuman Compatible