加载中…
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, whose original runtime is , where is the input length and is the number of non-terminals in the grammar. In contrast, our speed-up runs in .

生成讲解博客的中文版本

生成AI智能校验的中文版本