A domain independent natural language interface to databases capable of processing complex queries

  • Authors:
  • Rodolfo A. Pazos Rangel;O. Joaquín Pérez;B. Juan Javier González;Alexander Gelbukh;Grigori Sidorov;M. Myriam J. Rodríguez

  • Affiliations:
  • National Center for Investigation and Technological Development (CENIDET);National Center for Investigation and Technological Development (CENIDET);Technological Institute of Cd. Madero, México;Center for Computing Research(CIC), National Polytechnic Institute(IPN), México;Center for Computing Research(CIC), National Polytechnic Institute(IPN), México;Technological Institute of Cd. Madero, México

  • Venue:
  • MICAI'05 Proceedings of the 4th Mexican international conference on Advances in Artificial Intelligence
  • Year:
  • 2005

Quantified Score

Hi-index 0.01

Visualization

Abstract

We present a method for creating natural language interfaces to databases (NLIDB) that allow for translating natural language queries into SQL. The method is domain independent, i.e., it avoids the tedious process of configuring the NLIDB for a given domain. We automatically generate the domain dictionary for query translation using semantic metadata of the database. Our semantic representation of a query is a graph including information from database metadata. The query is translated taking into account the parts of speech of its words (obtained with some linguistic processing). Specifically, unlike most existing NLIDBs, we take seriously auxiliary words (prepositions and conjunctions) as set theory operators, which allows for processing more complex queries. Experimental results (conducted on two Spanish databases from different domains) show that treatment of auxiliary words improves correctness of translation by 12.1%. With the developed NLIDB 82of queries were correctly translated (and thus answered). Reconfiguring the NLIDB from one domain to the other took only ten minutes.