On Finding the K-best Non-projective Dependency Trees

Ran Zmigrod, Tim Vieira, Ryan Cotterell
6/1/2021
cs.CL

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

Abstract

The connection between the maximum spanning tree in a directed graph and the best dependency tree of a sentence has been exploited by the NLP community. However, for many dependency parsing schemes, an important detail of this approach is that the spanning tree must have exactly one edge emanating from the root.

Show full abstract

While work has been done to efficiently solve this problem for finding the one-best dependency tree, no research has attempted to extend this solution to finding the $K$-best dependency trees. This is arguably a more important extension as a larger proportion of decoded trees will not be subject to the root constraint of dependency trees. Indeed, we show that the rate of root constraint violations increases by an average of $13$ times when decoding with $K\!=\!50$ as opposed to $K\!=\!1$. In this paper, we provide a simplification of the $K$-best spanning tree algorithm of Camerini et al. (1980). Our simplification allows us to obtain a constant time speed-up over the original algorithm. Furthermore, we present a novel extension of the algorithm for decoding the $K$-best dependency trees of a graph which are subject to a root constraint.

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{zmigrod2021finding,
  title  = {On Finding the K-best Non-projective Dependency Trees},
  author = {Ran Zmigrod and Tim Vieira and Ryan Cotterell},
  year   = {2021},
  eprint = {2106.00780},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.00780}
}

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/2106.00780.svg)](https://codeofpaper.com/paper/2106.00780)

Discussion