A Deterministic Syntactic-Semantic Parser

Gérard Sabah, Mohamed RadyIJCAI 1983

Abstract

In the early 1980s, natural language processing was dominated by non-deterministic parsing strategies that relied heavily on backtracking or parallel exploration of syntactic paths. This paper presents a novel deterministic parser that integrates semantic constraints directly into the syntactic analysis. By replacing the traditional Last-In-First-Out (LIFO) stack with a flexible "detach and resume" mechanism and employing a look-ahead window, the system resolves complex structural ambiguities—such as prepositional phrase attachments and relative clause dependencies—without the computational overhead of non-deterministic methods.

Introduction

During the formative years of computational linguistics, the "autonomy of syntax"—the principle that grammatical structure should be processed independently of meaning—was a central tenet. However, this separation often led to significant bottlenecks. Parsers typically encountered structural ambiguities that could only be resolved through backtracking (reversing a failed path) or parallelism (pursuing all paths simultaneously). Both approaches are computationally expensive and diverge from human linguistic processing.

Sabah and Rady argue that non-determinism is not a feature of language itself but a symptom of modular isolation. They identify four primary obstacles to efficient parsing: the isolation of syntax from semantics, rigid top-down or bottom-up strategies, the limitations of the LIFO stack, and the pressure for immediate processing (hie et nunc). To address these, they propose a system that treats semantics as an active filter rather than a post-processing step.

Architectural Innovations

The proposed parser is built upon two core pillars: Syntactic-Semantic Integration and Quasi-Simultaneous Execution.

Integrated Syntactic-Semantic Rules

Unlike traditional parsers that assign broad categories like "Noun" or "Verb," this system utilizes rules that verify semantic compatibility in real-time. For instance, when the parser encounters a noun following a verb, it checks if that noun is a valid semantic filler for the verb's expected "case" (e.g., is the noun a plausible "objective" or "dative" for the verb to cure?). This immediate filtering significantly reduces the number of valid grammatical paths.

The "Detach and Resume" Mechanism

Perhaps the most significant departure from standard theory is the replacement of the rigid LIFO stack. In a standard stack, a parser cannot "reach back" to older structures without popping the current ones. Sabah and Rady utilize a list-like structure that allows the parser to detach a current constituent when a complex sub-structure (like a relative clause) is encountered. Once the sub-structure is processed, the parser can resume the most appropriate previous constituent based on semantic fit. This allows for the handling of long-distance dependencies and complex attachments that typically force backtracking in other systems.

Look-Ahead and Interruption

Borrowing from compiler theory, the parser maintains a "field of vision" consisting of the current structure and the next three potential structures. This "wait-and-see" approach ensures the parser has sufficient context to make a single, correct decision. Furthermore, "interruption rules" allow the system to dynamically switch between top-down prediction and bottom-up attachment when the look-ahead window suggests a sub-structure needs to be constructed first.

Experimental Evaluation

In the absence of modern large-scale corpora, the authors evaluated the parser using a series of hand-crafted linguistic "torture tests" in both English and French. These tests focused on areas where syntactic-only parsers frequently fail:

  • Prepositional Phrase (PP) Attachment: Distinguishing between "John drinks the wine on the table" (where the PP modifies the wine) and "John puts the wine on the table" (where the PP is a required argument for the verb).
  • Semantic Disambiguation: Resolving different structures in sentences like "John makes a program in Simula" versus "John makes a program conscious."
  • French Relative Clauses: Utilizing gender-marked verbs in French to test the "detach/resume" logic, ensuring that relative clauses attach to the correct noun even across intervening phrases.

Results and Performance

The system was implemented in SIMULA (a precursor to object-oriented languages like C++) and comprised approximately 3,000 instructions. When tested on a PDP10 computer, the parser demonstrated the following performance metrics:

  • Speed: Sentences of approximately 10 words were processed in roughly 2 seconds.
  • Memory: The system utilized approximately 100K of core memory.
  • Linguistic Accuracy: The parser successfully resolved local ambiguities by using semantic markers and gender agreement to make deterministic attachment decisions.

Conclusion and Future Work

The work of Sabah and Rady demonstrates that determinism in natural language parsing is achievable when syntax and semantics are integrated. By moving away from the "prison" of the LIFO stack and adopting a "wait-and-see" strategy, the parser mimics the efficiency of human language processing.

However, the authors note several areas for improvement. The three-structure look-ahead window is a heuristic that may require adjustment for more complex nested structures. Additionally, while the current semantic checks are effective, a more robust "frame-like" representation of world knowledge would be necessary for the system to handle truly complex inferences. Future iterations may also explore more flexible conceptual representations, potentially using languages like LISP to enhance the system's adaptability.

Summary updated

BibTeX
@inproceedings{sabah1983deterministic,
  author = {Gérard Sabah and Mohamed Rady},
  title = {{A Deterministic Syntactic-Semantic Parser}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1983},
}
Figure