Centering Theory — Core Definitions #
[GJW95] [Kam86] [Sid79]
Theory-neutral types for Centering: realizations, utterances, and
typeclass plug-ins for ranking schemes (CfRanker/CfRankerOf),
realization (Realizes), and pronominalization (Pronominalizes).
Role type R is a parameter; Instances/ provides per-paper rankers.
Cf Ranking Plug-In #
Numeric rank over a role type for ordering forward-looking centers (higher rank ⇒ more prominent in Cf).
- rank : R → ℕ
Instances
Lift a CfRanker instance to a LinearOrder. For finite-enum role
types, the injectivity obligation is dischargeable by decide.
Equations
- Discourse.Centering.CfRanker.toLinearOrder R h = LinearOrder.lift' Discourse.Centering.CfRanker.rank h
Instances For
Realization and Utterance #
A noun-phrase realization: entity, role, pronoun flag.
- entity : E
- role : R
- isPronoun : Bool
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
An utterance as a list of NP realizations in surface order.
- realizations : List (Realization E R)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- Discourse.Centering.instDecidableEqUtterance.decEq { realizations := a } { realizations := b } = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
Instances For
Generalized Cf Ranking (per-realization) #
Rank a full Realization (not just its role). Needed by rankers
that depend on surface position (Rambow 1993) or information status
(Strube-Hahn 1999); CfRanker R lifts here via cfRankerOf_of_role.
- rank : Realization E R → ℕ
Instances
Default lift: rank by role only via r.role. Low priority so
per-realization instances win.
Equations
- Discourse.Centering.cfRankerOf_of_role = { rank := fun (rl : Discourse.Centering.Realization E R) => Discourse.Centering.CfRanker.rank rl.role }
Realizes / Pronominalizes Plug-Ins #
"u realizes e": the entity e is among the referents contributed
by u. outParam E so typeclass search infers entity type from U.
- Rel : U → E → Prop
The predicate "u realizes e".
The relation is pointwise decidable.
Instances
"u realizes e", as a Prop. Ergonomic alias for Realizes.Rel.
Equations
Instances For
"u pronominalizes e": some realization of e in u is pronominal.
- Rel : U → E → Prop
The predicate "u pronominalizes e".
The relation is pointwise decidable.
Instances
"u pronominalizes e", as a Prop. Ergonomic alias for Pronominalizes.Rel.