Algorithms for Deterministic Incremental Dependency Parsing

Nivre, 2008, Algorithms for Deterministic Incremental Dependency Parsing (Computational Linguistics)

Subscriber deck — free during early access

3 cards in “4.2 Arc-Eager Parsing” · whole deck

4.2 Arc-Eager Parsing

  1. Give the transitions of the arc-eager parser.
    LEFT-ARC\(_l\): as in arc-standard (pop \(i\), add \((j, l, i)\)). RIGHT-ARC\(_l\): \((\sigma|i, j|\beta, A) \Rightarrow (\sigma|i|j, \beta, A \cup \{(i, l, j)\})\), pushing the dependent. REDUCE: pop the stack, if the top already has a head. SHIFT: push the first buffer node.
  2. How does arc-eager differ from arc-standard parsing?
    Arc-eager attaches right dependents as soon as possible, before they have found their own right dependents, so both head and dependent stay on the stack; REDUCE pops the dependent later. It is more incremental: a word is attached as soon as its head is available.
  3. Trace arc-eager parsing of “John saw Mary” (saw is the root; John and Mary depend on saw).
    SHIFT, LEFT-ARCSBJ, RIGHT-ARCROOT, RIGHT-ARCOBJ; the buffer is then empty, so parsing ends (LA/RA = LEFT-/RIGHT-ARC):
    transitionstackbufferarc
    –[0][1,2,3]
    SHIFT[0, 1][2, 3]
    LASBJ[0][2, 3]2 → 1
    RAROOT[0, 2][3]0 → 2
    RAOBJ[0,2,3][ ]2 → 3

Source