An Earley-style Predictive Chart Parsing Method for Lambek Grammars

Mark HeppleACL 1999

Introduction

The Lambek calculus provides a robust mathematical foundation for natural language syntax, yet its computational implementation has long been hindered by the complexity of "hypothetical reasoning." In linguistic structures such as relative clauses, the grammar must temporarily assume the existence of a missing component (a hypothetical) and subsequently discharge this assumption once the overall structure is resolved. Traditional chart parsing algorithms, which rely on a strict linear word order, struggle with these "floating" requirements. This paper presents a novel approach that bridges logic-based categorial grammars with indexed grammar formalisms to achieve highly efficient parsing.

The Challenge of Hypothetical Reasoning

Standard chart parsers operate by filling a table based on the sequential positions of words in a sentence. Hypotheticals disrupt this model because they do not correspond to a fixed position in the input string. Previous attempts to address this involved either computationally expensive exhaustive searches or the use of "minicharts," both of which lacked the efficiency required for practical applications.

Methodology: From Formulae to SLMG

The proposed solution involves a three-stage transformation process that converts Lambek formulae into a format compatible with a modified Earley-style predictive algorithm:

  1. Span Labelling: Following Morrill (1995), directional types are assigned specific string positions or "spans." This ensures that the linear order of the input is maintained even as complex formulae are manipulated.
  2. First-order Compilation: Utilizing Hepple’s (1996) technique, higher-order formulae—those necessitating hypothetical reasoning—are simplified into first-order equivalents. The "missing" components are extracted and treated as additional assumptions, linked via a unique indexing scheme.
  3. SLMG Conversion: The final step transforms these results into Span Labelled Multiset Grammar (SLMG) productions. These rules resemble standard phrase-structure rules but are augmented with a multiset of indices that track active hypotheticals.
A representation of a Span Labelled Multiset Grammar (SLMG) structure, showing the integration of spans and multiset indices.

The resulting algorithm adapts a predictive Earley-style parser originally designed for D-Tree grammars. By "threading" the multiset of requirements through the chart, the parser ensures that every assumption made is precisely satisfied without the need for redundant searches.

Key Insights

A critical innovation is the use of multisets as a "threaded" state. Instead of maintaining separate charts for hypotheticals, the algorithm passes requirements through the daughters of a node, preserving the efficiency of the primary chart. Furthermore, because word positions are integrated into the span labels of the rules, the traditional "scanning" step is eliminated. The algorithm also employs a "restrictor set" to limit variable storage in chart edges, preventing the creation of redundant sub-derivations.

Performance and Results

The algorithm was evaluated using a highly ambiguous artificial sentence designed to test worst-case combinatorial complexity. In a direct comparison with the previous state-of-the-art method by König (1994), the new approach demonstrated a dramatic performance improvement. While König's method generated 300 edges and required 50 seconds to complete the parse, the proposed method produced only 75 edges and finished in less than 0.1 seconds.

Conclusion and Future Work

While the method is technically non-polynomial—meaning complexity could still escalate in specifically engineered pathological cases—it performs exceptionally well on the types of structures found in natural language. Future research will focus on extending the method to non-associative grammars and validating its performance on large-scale, broad-coverage real-world corpora. The current work marks a significant step toward making the Lambek calculus a practical tool for computational linguistics.

Summary updated

BibTeX
@inproceedings{hepple1999earley,
  author = {Mark Hepple},
  title = {{An Earley-style Predictive Chart Parsing Method for Lambek Grammars}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1999},
  doi = {10.3115/1034678.1034749},
}
Figure