Chapter guide
- 23.1 Language Models — Estimate how probable a word sequence is, often by predicting the next token from context.
- 23.2 Grammar — A grammar specifies structural patterns; formal rules can describe infinitely many sentences compactly.
- 23.3 Parsing — A parser builds candidate structures for a sentence, sometimes preserving multiple interpretations.
- 23.4 Augmented Grammars — Feature constraints and semantic actions enrich grammar rules with agreement or meaning-related information.
- 23.5 Complications of Real Natural Language — Ambiguity, idioms, context, variation, and noisy input challenge clean formal models.
- 23.6 Natural Language Tasks — Translation, information extraction, dialogue, question answering, and generation combine language components.
Structure can constrain interpretation, while probabilistic models rank alternatives using data and context.