Journal article
Fast, Small and Exact: Infinite-order Language Modeling with Compressed Suffix Trees
E Shareghi, M Petri, G Haffari, T Cohn
Transactions of the Association for Computational Linguistics | Association for Computational Linguistics | Published : 2016
DOI: 10.1162/tacl_a_00112
Abstract
Efficient methods for storing and querying are critical for scaling high-order m-gram language models to large corpora. We propose a language model based on compressed suffix trees, a representation that is highly compact and can be easily held in memory, while supporting queries needed in computing language model probabilities on-the-fly. We present several optimisations which improve query runtimes up to 2500×, despite only incurring a modest increase in construction time and memory usage. For large corpora and high Markov orders, our method is highly competitive with the state-of-the-art KenLM package. It imposes much lower memory requirements, often by orders of magnitude, and has runtim..
View full abstract