SOTAVerified

Content Enhanced BERT-based Text-to-SQL Generation

2019-10-16Code Available0· sign in to hype

Tong Guo, Huilin Gao

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

We present a simple methods to leverage the table content for the BERT-based model to solve the text-to-SQL problem. Based on the observation that some of the table content match some words in question string and some of the table header also match some words in question string, we encode two addition feature vector for the deep model. Our methods also benefit the model inference in testing time as the tables are almost the same in training and testing time. We test our model on the WikiSQL dataset and outperform the BERT-based baseline by 3.7% in logic form and 3.7% in execution accuracy and achieve state-of-the-art.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
WikiSQLNL2SQL-RULEExecution Accuracy89.2Unverified

Reproductions