A Fast Algorithm for Computing Prefix Probabilities

3Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.

Abstract

Multiple algorithms are known for efficiently calculating the prefix probability of a string under a probabilistic context-free grammar (PCFG). Good algorithms for the problem have a runtime cubic in the length of the input string. However, some proposed algorithms are suboptimal with respect to the size of the grammar. This paper proposes a novel speed-up of Jelinek and Lafferty’s (1991) algorithm, which runs in O(N3|N|3 + |N|4), where N is the input length and |N| is the number of non-terminals in the grammar. In contrast, our speed-up runs in O(N2|N|3 + N3|N|2).

Cite

CITATION STYLE

APA

Nowak, F., & Cotterell, R. (2023). A Fast Algorithm for Computing Prefix Probabilities. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 2, pp. 57–69). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2023.acl-short.6

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free