Documentation

Linglib.Syntax.DependencyGrammar.Coordination

Coordination in UD enhanced graphs #

Implements coordination in Universal Dependencies' enhanced-dependency graphs ([dMN19], §4.2 and Figure 9, applied to coordinate structures): the basic dependency tree attaches each shared dependent to the first conjunct only, and the enhanced graph recovers the parallel attachments by propagating obj / nsubj / iobj edges from the first-conjunct head to every other conjunct.

Word Grammar ([Hud10], §7.5.4 "Non-constituent coordination") handles the same data via a different device: a contiguous string of words may be treated as a single chunk ("word string") and entered into a dependency relation as a whole, eliminating the need to propagate shared dependents. For the historical phrase-structure approach to coordination (Coordinate Structure Constraint, ATB extraction as theorems of a complex-symbol grammar), see [Gaz81].

Main declarations #

Implementation notes #

Coordinate structure #

def DepGrammar.Coordination.getConjuncts (t : DepTree) (headIdx : ) :
List

Conjuncts of a head: words linked by conj edges from headIdx. In UD basic-tree convention these are the second-and-later conjuncts; the first conjunct is headIdx.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Word i heads a coordinate structure iff it has at least one outgoing conj edge.

    Equations
    Instances For
      def DepGrammar.Coordination.allConjuncts (t : DepTree) (headIdx : ) :
      List

      All conjuncts of a coordinate structure headed at headIdx: headIdx itself (first conjunct, which heads the structure in UD basic-tree convention) plus the words linked via conj.

      Equations
      Instances For

        Parallelism heuristics #

        Every conj edge connects words of matching UPOS categories.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          For verbal conj edges, conjuncts have matching frames. Coarse heuristic — does not handle clausal coordination (ccomp / xcomp) or finer subcategorization.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            UD enhanced-edge construction #

            Enhance a basic tree by propagating shared dependents from the first conjunct to all subsequent conjuncts. For each conj edge head→dep, propagates the head's obj / nsubj / iobj edges to dep. Returns a DepGraph (words may have multiple incoming edges). Cf. [dMN19] Figure 9 for the relative-clause analogue.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For