Constituent Parsing as Sequence Labeling

Carlos Gómez-Rodríguez, David Vilares
10/21/2018
cs.CL

Official code: aghie/tree2labels (35 stars, Python, MIT, last commit 2020-12-19).

Abstract

We introduce a method to reduce constituent parsing to sequence labeling. For each word w_t, it generates a label that encodes: (1) the number of ancestors in the tree that the words w_t and w_{t+1} have in common, and (2) the nonterminal symbol at the lowest common ancestor.

Show full abstract

We first prove that the proposed encoding function is injective for any tree without unary branches. In practice, the approach is made extensible to all constituency trees by collapsing unary branches. We then use the PTB and CTB treebanks as testbeds and propose a set of fast baselines. We achieve 90.7% F-score on the PTB test set, outperforming the Vinyals et al. (2015) sequence-to-sequence parser. In addition, sacrificing some accuracy, our approach achieves the fastest constituent parsing speeds reported to date on PTB by a wide margin.

View on arXivView PDF

Code Implementations(1)

aghie/tree2labelsOfficial100%
MIT

Constituent Parsing as Sequence Labeling

358Python, CAug 14, 20185 years agoMIT
constituency-parsersequence-labeling

Similar Papers

Cite this paper

@article{gmezrodrguez2018constituent,
  title  = {Constituent Parsing as Sequence Labeling},
  author = {Carlos Gómez-Rodríguez and David Vilares},
  year   = {2018},
  eprint = {1810.08994},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.08994}
}

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

Discussion