HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generation

Tao Yu; Zifan Li; Zilin Zhang; Rui Zhang; Dragomir Radev

TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generation

Abstract

Interacting with relational databases through natural language helps users of any background easily query and analyze a vast amount of data. This requires a system that understands users' questions and converts them to SQL queries automatically. In this paper we present a novel approach, TypeSQL, which views this problem as a slot filling task. Additionally, TypeSQL utilizes type information to better understand rare entities and numbers in natural language questions. We test this idea on the WikiSQL dataset and outperform the prior state-of-the-art by 5.5% in much less time. We also show that accessing the content of databases can significantly improve the performance when users' queries are not well-formed. TypeSQL gets 82.6% accuracy, a 17.5% absolute improvement compared to the previous content-sensitive model.

Code Repositories

taoyds/typesql
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
code-generation-on-wikisqlTypeSQL+TC (Yu et al., 2018)+
Execution Accuracy: 82.6
code-generation-on-wikisqlTypeSQL (Yu et al., 2018)
Execution Accuracy: 73.5

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp