An Empirical Study of Compound PCFGs

Yanpeng Zhao, Ivan Titov
3/3/2021
9 citations
cs.CL

Official code: zhaoyanpeng/cpcfg (23 stars, Python, last commit 2023-11-08). Most starred: zhaoyanpeng/xcfg, a community implementation (25 stars, Python, last commit 2024-01-30, 1.1× the official stars). 1 more implementation below.

Abstract

Compound probabilistic context-free grammars (C-PCFGs) have recently established a new state of the art for unsupervised phrase-structure grammar induction. However, due to the high space and time complexities of chart-based representation and inference, it is difficult to investigate C-PCFGs comprehensively.

Show full abstract

In this work, we rely on a fast implementation of C-PCFGs to conduct an evaluation complementary to that of~\citet{kim-etal-2019-compound}. We start by analyzing and ablating C-PCFGs on English treebanks. Our findings suggest that (1) C-PCFGs are data-efficient and can generalize to unseen sentence/constituent lengths; and (2) C-PCFGs make the best use of sentence-level information in generating preterminal rule probabilities. We further conduct a multilingual evaluation of C-PCFGs. The experimental results show that the best configurations of C-PCFGs, which are tuned on English, do not always generalize to morphology-rich languages.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
zhaoyanpeng/cpcfgOfficial23Python–2023-11-08
zhaoyanpeng/xcfgCommunity25Python–2024-01-30
zhaoyanpeng/cpcfgOfficial100%

Fast and Modularized CFG-focused Models

231PythonAug 17, 20203 years ago
compoundpcfgvg-pcfg
zhaoyanpeng/xcfgCommunity100%

X (weighted / probabilistic) Context-Free Grammars

252Python, ShellAug 1, 20192 years ago
ctbparsingpcfgspmrlwsj

Similar Papers

Cite this paper

@article{zhao2021empirical,
  title  = {An Empirical Study of Compound PCFGs},
  author = {Yanpeng Zhao and Ivan Titov},
  year   = {2021},
  eprint = {2103.02298},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.02298}
}

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

Discussion