Writing a Natural Language Data Base System

TL;DR

This paper introduces PLANES, a natural language interface for relational databases that handles ungrammatical English, ellipsis, and abbreviations. It proposes a novel approach to parsing and query generation that relies on semantic constituents and concept case frames, making it adaptable to new databases with minimal effort.

What Problem Does This Paper Address?

Accessing information stored in relational databases typically requires users to be proficient in formal query languages like SQL. This creates a barrier for "casual users" who may not have programming expertise but possess domain knowledge. Existing natural language interfaces often struggle with the complexities of real-world user input, such as ungrammatical sentences, missing information (ellipsis), abbreviations, and pronouns. The authors aim to bridge this gap by developing a robust natural language processing system that can understand and translate these varied and often imperfect user requests into formal database queries.

Methods

The PLANES system employs a multi-stage approach:

  • Parsing: This phase identifies semantic constituents of a user's request. It utilizes Augmented Transition Networks (ATNs) as "expert" subnets, each specialized in recognizing specific types of semantic information (e.g., time periods, plane types). This allows the system to handle a wide range of grammatical correctness, from formal English to "pidgin English."
  • Concept Case Frames: To manage missing information (ellipsis, pronouns), PLANES uses concept case frames. These are templates representing typical database questions, with "slots" to be filled by semantic constituents. Context registers act as memory, storing information from previous interactions to help resolve ambiguities and fill missing slots.
  • Query Generation: This component translates the identified semantic constituents and filled concept case frames into a formal database query. It determines what information to return, what patterns must be satisfied, which relations to search, and how to sort the results. The system can handle complex queries involving joins and special operations.
  • Paraphrasing and Feedback: Before executing a query, PLANES generates a paraphrase of its understanding for user approval. This allows for error correction and clarification through a dialogue.

A key innovation is the assumption that a request is uniquely determined by its semantic constituents, independent of their order, and the use of concept case frames to bridge the gap between user input and formal queries.

Datasets

The paper primarily draws examples from the PLANES system, which operates on a database supplied by 3-M (Maintenance and Material Management). This database contains detailed aircraft flight and maintenance data, organized by month, aircraft, and data type. No new benchmarks are introduced; the focus is on adapting the system to an existing, large-scale database.

Key Insights and Ideas

  • Semantic Constituent Focus: The core idea that a query is defined by its semantic constituents, not their strict grammatical order, is crucial for handling ungrammatical input.
  • Concept Case Frames as Semantic Templates: Using concept case frames as flexible templates to guide query construction, especially when dealing with ellipsis and pronouns, is a powerful mechanism for natural language understanding.
  • Context Registers for Memory: The implementation of context registers as history keepers is vital for maintaining dialogue context and resolving anaphoric references and ellipsis effectively.
  • Adaptability to New Databases: The model's design, particularly the concept case frame approach, is intended to be adaptable to new relational databases with minimal reprogramming, primarily by defining new concept case frames.

Key Results

The paper focuses on the methodology and system design rather than presenting extensive quantitative results. However, it states that PLANES typically requires 1-4 seconds to parse a sentence and generate a formal relational query. The processing time is highly dependent on the amount of data to be searched. The system is demonstrated to handle ungrammatical input, ellipsis, and abbreviations, and can generate paraphrases for user verification.

Limitations and Future Work

  • Limitations: The authors acknowledge that while the system handles many ungrammatical constructs, certain complex constructions like comparatives can still pose challenges, and the order of constituents can be important in specific cases. The process of adding new concept case frames can be complex and may require programmer intervention for novel requests involving pronoun reference or ellipsis.
  • Future Work: The paper mentions plans for extensive testing on real potential users. They also suggest that the query generator could be extended to support data models other than relational. The system's ability to handle new phrasing by adding synonymous phrases to subnets is also highlighted as a path for extension.

Summary updated

BibTeX
@inproceedings{1977writing,
  title = {{Writing a Natural Language Data Base System}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1977},
}
Figure