AI Glossary / Natural language and speech / Intermediate
Discourse parsing
Definition
Discourse parsing is the computational analysis of relationships and structure across parts of a text. It identifies how spans connect through meanings such as explanation, contrast, or elaboration. Depending on the framework, the output may be a hierarchical tree or a set of relations between span pairs, rather than a grammatical parse of one sentence.
What it means
A document does more than place sentences next to one another. Some passages explain others, provide supporting detail, introduce alternatives, or state consequences. A discourse parser attempts to make those connections explicit.
The task depends on a chosen representation. Rhetorical Structure Theory, often abbreviated RST, commonly represents a document through a hierarchy of discourse units and relations. Penn Discourse TreeBank-style analysis focuses on relations between argument spans without requiring one global document tree.
Neither representation is simply a list of transition words. Some relations have explicit markers, while others must be inferred from the content and context.
How it works
A parser may first segment text into units appropriate to its framework. It then predicts connections, relation labels, and any additional distinctions required by the representation, such as which span is central in an asymmetric RST relation.
In a connective-oriented pipeline, the system identifies a connective's discourse use, finds its arguments, and labels their relationship. Implicit relations require analysis even when no connective appears.
Evaluation must match the task. A system supplied with correct segment boundaries faces a different problem from one that must find those boundaries itself. Likewise, getting the linked spans right is different from assigning the right relation label or recovering an entire hierarchy.
Three practical examples
- A research summarizer can use discourse analysis to identify how supporting explanations relate to a document's main claims.
- A report-review system can inspect whether a predicted contrast connects the intended alternatives rather than unrelated neighboring clauses.
- An NLP benchmark can evaluate segmentation, attachment, and relation labeling separately to reveal where a parser's errors arise.
Think of it this way
Think of turning a written argument into a map whose connections have labels. The map shows how one part supports, explains, or contrasts with another. The analogy captures structure, but a parser predicts an interpretation under defined conventions; it does not automatically establish that the argument is true or logically sound.
Worked example
Consider an invented passage: “The trial ran longer than planned because onboarding took an extra week. However, the team kept the original launch date.”
A simplified analysis identifies three spans: A = the trial ran longer; B = onboarding took an extra week; C = the launch date stayed unchanged. The “because” connection presents B as explaining A. “However” signals a contrast or concession between the extended-trial situation and C, with the exact label depending on the annotation scheme.
Now suppose a parser correctly selects A and B but labels their relationship as temporal sequence only. It has found the relevant spans but missed the explanatory meaning. A second parser chooses the correct relation type but attaches B to C, incorrectly implying that extra onboarding time explains keeping the launch date.
These are different errors. An evaluation that checks only whether the word “because” was found would miss both. This miniature analysis is pedagogical, not a claim to provide a complete official RST or PDTB annotation for the passage.
Illustrative case study
Fictional case: StructureNote develops a research tool for analyzing internal incident reports. Its initial demonstration assumes that a human has already marked discourse-unit boundaries. A project reviewer notices that this assumption is absent from the performance summary.
The team separates two evaluations: relation prediction with supplied boundaries and an end-to-end workflow that also predicts segmentation. It records errors where a long clause is split incorrectly and errors where the units are correct but the relation is wrong.
The resulting report explains which parts of the task the prototype handles. This fictional case illustrates transparent evaluation scope; it does not claim any particular accuracy or demonstrate that discourse parsing alone produces reliable incident summaries.
Common misconceptions and mistakes
Do not confuse discourse parsing with sentence-level syntactic parsing. They analyze different kinds of structure, even when they use related algorithmic ideas.
Do not assume every discourse framework produces a tree. Pairwise relation annotation can avoid committing to a complete hierarchy.
Avoid comparing scores without checking segmentation assumptions, relation inventories, datasets, and metrics. Also remember that a plausible discourse structure does not verify the factual content or causal validity of the source text.
Business use
For business applications, discourse parsing can support more precise analysis of explanations, qualifications, and argument organization. It is especially useful as a way to define what a document-processing system should preserve.
A practical project should start from the downstream need. If the problem is losing qualifications in summaries, evaluation should test that failure directly, alongside any intermediate parsing metrics. A higher parser score is useful evidence only to the extent that its task and data resemble the intended workflow.
People also ask
Does discourse parsing require explicit connective words?
No. Relations can be implicit and require inference from the spans themselves.
Is a discourse tree the only possible output?
No. RST-style trees are one representation; other approaches identify relations between pairs of spans.
Why distinguish supplied segmentation from end-to-end parsing?
Supplied boundaries remove one source of difficulty. Reporting that condition prevents a relation-classification result from being mistaken for performance on the complete pipeline.
Check your understanding
A parser identifies the right cause and outcome spans but reverses which one explains the other. Has it fully recovered the relationship?
Answer: No. For an asymmetric relation, direction is part of the meaning. Correct span detection alone is insufficient.
Related terms
- Discourse relation
- Rhetorical structure theory
- Discourse connectives
- Segmentation
- Syntactic parsing (computational linguistics)
- elementary discourse unit
- Penn Discourse TreeBank
- discourse connective
- syntactic parsing
Learn next
Take a short explanation and mark its spans, then describe the relations in plain language before assigning formal labels. Compare a pairwise representation with a possible hierarchy, and record which decisions depend on the annotation guidelines.
More in Natural language and speech
- Discount - In count-based language modeling, a discount reduces the probability mass assigned to observed events so that some mass can be allocated elsewhere...
- Discourse - Discourse is connected language interpreted as a structured whole, such as a conversation, report, story, or article.
- Discourse deixis - Discourse deixis is reference to some aspect of a stretch of discourse, often using expressions such as “this” or “that.
- Discourse-new - Discourse-new describes a referent that is being introduced into the current discourse rather than already being established in it.
- Discourse-old - Discourse-old describes a referent that has already been established in the current discourse and is accessed again by a later expression.
- Discovery procedure - In the linguistic context of this glossary, a discovery procedure is a systematic method intended to derive a description of a language's structure from...
Sources
Sources: Jurafsky and Martin, Speech and Language Processing, Chapter 25, Sections 25.1–25.2 consulted directly: https://web.stanford.edu/~jurafsky/slp3/25.pdf. RST hierarchy, PDTB span-pair scope and gold-versus-predicted segmentation evaluation were independently checked. The invented passage is a simplified analysis with explicitly framework-dependent labels.
Previous: Discourse-old Next: Discourse relation