Fast and Accurate Neural CRF Constituency Parsing

Yu Zhang, Houquan Zhou, Zhenghua Li
8/9/2020
cs.CL

Official code: yzhangcs/crfpar (78 stars, Python, MIT, PyTorch, last commit 2020-11-10).

Abstract

Estimating probability distribution is one of the core issues in the NLP field. However, in both deep learning (DL) and pre-DL eras, unlike the vast applications of linear-chain CRF in sequence labeling tasks, very few works have applied tree-structure CRF to constituency parsing, mainly due to the complexity and inefficiency of the inside-outside algorithm.

Show full abstract

This work presents a fast and accurate neural CRF constituency parser. The key idea is to batchify the inside algorithm for loss computation by direct large tensor operations on GPU, and meanwhile avoid the outside algorithm for gradient computation via efficient back-propagation. We also propose a simple two-stage bracketing-then-labeling parsing approach to improve efficiency further. To improve the parsing performance, inspired by recent progress in dependency parsing, we introduce a new scoring architecture based on boundary representation and biaffine attention, and a beneficial dropout strategy. Experiments on PTB, CTB5.1, and CTB7 show that our two-stage CRF parser achieves new state-of-the-art performance on both settings of w/o and w/ BERT, and can parse over 1,000 sentences per second. We release our code at https://github.com/yzhangcs/crfpar.

View on arXivView PDF

Code Implementations(1)

yzhangcs/crfparOfficial100%
PyTorchMIT

[ACL'20, IJCAI'20] Code for "Efficient Second-Order TreeCRF for Neural Dependency Parsing" and "Fast and Accurate Neural CRF Constituency Parsing".

787PythonMay 27, 20206 years agoMIT
acl2020constituency-parsingdependency-parsingijcai2020pytorch+1 more

Similar Papers

Cite this paper

@article{zhang2020fast,
  title  = {Fast and Accurate Neural CRF Constituency Parsing},
  author = {Yu Zhang and Houquan Zhou and Zhenghua Li},
  year   = {2020},
  eprint = {2008.03736},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.03736}
}

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

Discussion