Generation of complex database queries and API calls from natural language utterances

12/15/2020
by   Amol Kelkar, et al.
11

Generating queries corresponding to natural language questions is a long standing problem. Traditional methods lack language flexibility, while newer sequence-to-sequence models require large amount of data. Schema-agnostic sequence-to-sequence models can be fine-tuned for a specific schema using a small dataset but these models have relatively low accuracy. We present a method that transforms the query generation problem into an intent classification and slot filling problem. This method can work using small datasets. For questions similar to the ones in the training dataset, it produces complex queries with high accuracy. For other questions, it can use a template-based approach or predict query pieces to construct the queries, still at a higher accuracy than sequence-to-sequence models. On a real-world dataset, a schema fine-tuned state-of-the-art generative model had 60% exact match accuracy for the query generation task, while our method resulted in 92% exact match accuracy.

READ FULL TEXT

page 1

page 2

page 3

research
08/30/2023

Text-to-OverpassQL: A Natural Language Interface for Complex Geodata Querying of OpenStreetMap

We present Text-to-OverpassQL, a task designed to facilitate a natural l...
research
01/30/2020

Don't Parse, Generate! A Sequence to Sequence Architecture for Task-Oriented Semantic Parsing

Virtual assistants such as Amazon Alexa, Apple Siri, and Google Assistan...
research
12/09/2021

Compositional Generalization for Natural Language Interfaces to Web APIs

This paper presents Okapi, a new dataset for Natural Language to executa...
research
08/28/2018

Identifying Well-formed Natural Language Questions

Understanding search queries is a hard problem as it involves dealing wi...
research
11/04/2020

MK-SQuIT: Synthesizing Questions using Iterative Template-filling

The aim of this work is to create a framework for synthetically generati...
research
11/13/2017

SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learning

Synthesizing SQL queries from natural language is a long-standing open p...
research
09/09/2020

Task-agnostic Indexes for Deep Learning-based Queries over Unstructured Data

Unstructured data is now commonly queried by using target deep neural ne...

Please sign up or login with your details

Forgot password? Click here to reset