Please Mind the Root: Decoding Arborescences for Dependency Parsing

Ran Zmigrod, Tim Vieira, Ryan Cotterell
10/6/2020
cs.CL

Official code: rycolab/spanningtrees (20 stars, Python, MIT, last commit 2022-12-12).

Abstract

The connection between dependency trees and spanning trees is exploited by the NLP community to train and to decode graph-based dependency parsers. However, the NLP literature has missed an important difference between the two structures: only one edge may emanate from the root in a dependency tree.

Show full abstract

We analyzed the output of state-of-the-art parsers on many languages from the Universal Dependency Treebank: although these parsers are often able to learn that trees which violate the constraint should be assigned lower probabilities, their ability to do so unsurprisingly de-grades as the size of the training set decreases. In fact, the worst constraint-violation rate we observe is 24%. Prior work has proposed an inefficient algorithm to enforce the constraint, which adds a factor of n to the decoding runtime. We adapt an algorithm due to Gabow and Tarjan (1984) to dependency parsing, which satisfies the constraint without compromising the original runtime.

View on arXivView PDF

Code Implementations(1)

MIT

Code Repository for "Please Mind the Root: Decoding Arborescences for Dependency Parsing" and "On Finding the K-best Non-projective Dependency Trees"

205PythonSep 16, 20203 years agoMIT

Similar Papers

Cite this paper

@article{zmigrod2020please,
  title  = {Please Mind the Root: Decoding Arborescences for Dependency Parsing},
  author = {Ran Zmigrod and Tim Vieira and Ryan Cotterell},
  year   = {2020},
  eprint = {2010.02550},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.02550}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.02550.svg)](https://codeofpaper.com/paper/2010.02550)

Discussion