Structured Prediction and Parsing Evaluation

Michael BrenndoerferNovember 17, 20263 min read
Language AI HandbookAll chapters
Part 7 of 67Linguistic Form: Morphology and Syntax
Chapter 49Structured Prediction and Parsing Evaluation
Reading section 1 of 14 · Structured Prediction and Parsing Evaluation · 3 minSection 1 of 14 · 3 min

Section 1 of 14 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Suppose every word chooses its highest-scoring head. Each attachment may look reasonable on its own, yet the combined output can contain a cycle and fail to be a tree. Parsing therefore asks you to choose compatible decisions, not just individually attractive ones. The HMMs and CRFs from the preceding part already introduced this distinction for tag sequences; trees add constraints on heads, roots, and, when required, projectivity. The practical problem is to find a high-scoring legal structure and then measure which parts of it are correct.

That shift changes three things at once, and this chapter is organized around them:

  • Decoding. How do you find the highest-scoring structure without enumerating every candidate? The exact chart decoders here exploit how the score is built from smaller pieces.
  • Training. What objective do you optimize when the loss is defined over whole structures rather than individual predictions? Local cross-entropy over candidate heads remains a useful training objective. A globally normalized alternative assigns probabilities to legal trees. The distinction is the normalization domain and the constraints included during training, not whether cross-entropy has a meaning.
  • Evaluation. How do you measure partial credit, and what does a single number like "92.4 LAS" actually tell you? Attachment scores average over a specified set of words. Frequent relations contribute more than rare ones, so the aggregate can hide errors on constructions that matter to your application.

The questions also arise in sequence labeling, semantic parsing, coreference, and constrained generation:

  • Which outputs are legal?
  • How are they scored?
  • Which errors does the metric count?

Their algorithms need not be the same. A chain may admit Viterbi decoding, a restricted tree factorization may admit a chart, and a more general graph or output constraint may require approximate search or another optimization method. Parsing gives us a concrete setting in which to examine those distinctions.

We assume you have seen context-free grammars and dependency trees in Part VII, and that the chart-parsing idea is familiar. What we add here is the structured-prediction view: why the recurrences have the shape they do, how hard constraints enter the search, how labels decouple from structure, and how to read parser numbers without fooling yourself.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy