A Modified Earley Parser for Huge Natural Language Grammars

Sinan Polat, Merve Selcuk-Simsek, Ilyas Cicekli · Research in Computing Science · 2016

For almost a half century Earley parser has been used in the parsing of context-free grammars and it is considered as a touch-stone algorithm in the history of parsing algorithms.On the other hand, it is also known for being expensive from its time requirement and memory usage perspectives.For huge context-free grammars, its performance is not good since its time complexity also depends on the number of rules in the grammar.The time complexity of the original Earley parser is O(R 2 N 3 ) where N is the string length, and R is the number of rules.In this paper, we aim to improve time and memory usage performances of Earley parser for grammars with a large number of rules.In our approach, we prefer radix tree representation for rules instead of list representation as in original Earley parser.We have tested our algorithm using different number of rule sets up to 200,000 which are all learned by an examplebased machine translation system.According to our evaluation results, our modified parser has a time bound of O(log(R)N 3 ), and it has 20% less memory usage regarding the original Earley parser.

Read the paper · More papers on PaperTik