Automatic Synthesis of Semantics for Context-free Grammars

We are investigating the mechanical transformation of an unambiguous context-free grammar (CFG) into a deenite-clause grammar (DCG) using a nite set of examples, each of which is a pair hs; mi, where s is a sentence belonging to the language deened by the CFG and m is a semantic representation (meaning) of s. The resulting DCG would be such that it can be executed (by the interpreter of a logic programming language) to compute the semantics for every sentence of the original DCG. Three important assumptions underlie our approach: (i) the semantic representation language is the simply typed-calculus; (ii) the semantic representation of a sentence can be obtained from the semantic representations of its parts (compositionality); and (iii) the structure of the semantic representation determines its meaning (intensionality). The basic technique involves an enumeration of parse trees for sentences of increasing size; and, for each parse tree, a set of equations over (typed) function variables that represent the meanings of the constituent subtrees is formulated and solved by means of a higher-order uniication procedure. The solutions for these function variables serve to augment the original grammar in order to derive the nal DCG. A technique called partial execution is used to convert, where possible, the generated higher-order DCG into a rst-order DCG, to facilitate eecient bidirectional execution. In the appendix, we provide detailed illustration of the use of such a system for storing and retrieving information contained in natural language sentences. Based on our experimentation, we conclude that an improved version of this system will facilitate rapid prototyping of natural language front-ends for various applications.

[1]  Gopalan Nadathur,et al.  Towards a WAM Model for Lambda-Prolog , 1989, NACLP.

[2]  Wendy G. Lehnert LEARNING TO INTEGRATE SYNTAX AND SEMANTICS , 1987 .

[3]  Marc Dymetman,et al.  Grammar bidirectionality through controlled backward deduction , 1990 .

[4]  Ana M. García Serrano,et al.  Natural Language Understanding and Logic Programming , 1985 .

[5]  Alain Colmerauer,et al.  Metamorphosis Grammars , 1978, Natural Language Communication with Computers.

[6]  Stuart M. Shieber,et al.  Prolog and Natural-Language Analysis , 1987 .

[7]  Manuel Blum,et al.  Toward a Mathematical Theory of Inductive Inference , 1975, Inf. Control..

[8]  Michael J. C. Gordon,et al.  Programming language theory and its implementation , 1988 .

[9]  John R. Anderson,et al.  A Theory of Language Acquisition Based on General Learning Principles , 1981, IJCAI.

[10]  Michael J. Maher,et al.  Foundations of Deductive Databases and Logic Programming , 1988 .

[11]  Verónica Dahl,et al.  Logic Grammars , 1989, Symbolic Computation.

[12]  Phillip D. Summers,et al.  A Methodology for LISP Program Construction from Examples , 1977, J. ACM.

[13]  John R. Anderson,et al.  Induction of Augmented Transition Networks , 1977, Cogn. Sci..

[14]  J. A. Robinson,et al.  A Machine-Oriented Logic Based on the Resolution Principle , 1965, JACM.

[15]  Sergei Nirenburg Machine translation: theoretical and methodological issues , 1987 .

[16]  Alan W. Biermann,et al.  Automatic Program Construction Techniques , 1984 .

[17]  Mallory Selfridge A Computer Model of Child Language Acquisition , 1981, IJCAI.

[18]  Mark Wallace Communicating with databases in natural language , 1984 .

[19]  David R. Dowty,et al.  Introduction to Montague semantics , 1980 .

[20]  Robert C. Berwick,et al.  The acquisition of syntactic knowledge , 1985 .

[21]  Marc Dymetman,et al.  CRITTER: a translation system for agricultural market reports , 1988, COLING.

[22]  Tom Michael Mitchell Version spaces: an approach to concept learning. , 1979 .

[23]  Stuart M. Shieber,et al.  A Uniform Architecture for Parsing and Generation , 1988, COLING.

[24]  Fernando Pereira,et al.  Semantic Interpretation as Higher-Order Deduction , 1990, JELIA.

[25]  E. J. Yannakoudakis,et al.  Communicating with Databases in Natural Language , 1988 .

[26]  William A. Woods,et al.  Computational Linguistics Transition Network Grammars for Natural Language Analysis , 2022 .

[27]  S. Vera,et al.  Induction of Concepts in the Predicate Calculus , 1975, IJCAI.