Stack-Pointer Networks for Dependency Parsing

Xuezhe Ma, Zecong Hu, Jingzhou Liu, Nanyun Peng, Graham Neubig +1 more
5/3/2018
cs.CLcs.LG

Official code: XuezheMax/NeuroNLP2 (437 stars, GPL-3.0, PyTorch, last commit 2022-02-01).

Abstract

We introduce a novel architecture for dependency parsing: \emph{stack-pointer networks} (\textbf{\textsc{StackPtr}}). Combining pointer networks~\citep{vinyals2015pointer} with an internal stack, the proposed model first reads and encodes the whole sentence, then builds the dependency tree top-down (from root-to-leaf) in a depth-first fashion. The stack tracks the status of the depth-first search and the pointer networks select one child for the word at the top of the stack at each step. The \textsc{StackPtr} parser benefits from the information of the whole sentence and all previously derived subtree structures, and removes the left-to-right restriction in classical transition-based parsers. Yet, the number of steps for building any (including non-projective) parse tree is linear in the length of the sentence just as other transition-based parsers, yielding an efficient decoding algorithm with $O(n^2)$ time complexity. We evaluate our model on 29 treebanks spanning 20 languages and different dependency annotation schemas, and achieve state-of-the-art performance on 21 of them.

View on arXivView PDF

Code Implementations(1)

PyTorchGPL-3.0

Deep neural models for core NLP tasks (Pytorch version)

43790Perl, ShellJun 18, 20174 years agoGPL-3.0
core-nlpdeep-learningdeep-neural-networksdependency-parsingmachine-learning+6 more

Similar Papers

Cite this paper

@article{ma2018stackpointer,
  title  = {Stack-Pointer Networks for Dependency Parsing},
  author = {Xuezhe Ma and Zecong Hu and Jingzhou Liu and Nanyun Peng and Graham Neubig and Eduard Hovy},
  year   = {2018},
  eprint = {1805.01087},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.01087}
}

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

Discussion