In this paper we present a new parsing algorithm for linear indexed grammars (LIGs) in the same spirit as the one described in (Vijay-Shanker and Weir, 1993) for tree adjoining grammars. For a LIG and an input string of length , we build a non ambiguous context-free grammar whose sentences are all (and exclusively) valid derivation sequences in which lead to . We show that this grammar can be built in time and that individual parses can be extracted in linear time with the size of the extracted parse tree. Though this upper bound does not improve over previous results, the average case behaves much better. Moreover, practical parsing times can be decreased by some statically performed computations.

生成讲解博客的中文版本

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