We have evaluated our model on spider dataset.
| Model | Dev EM | Dev EX | Test EM | Test EX |
|———|——–|——–|———|———|
| SQL-GPT | 84.3 | 77.4 | 84.4 | 74.0 |
Prerequisites
We need two cuda environment to run this project, one for schema linking, another for sql generate.
Evaluation Results
We have evaluated our model on spider dataset. | Model | Dev EM | Dev EX | Test EM | Test EX | |———|——–|——–|———|———| | SQL-GPT | 84.3 | 77.4 | 84.4 | 74.0 |
Prerequisites
We need two cuda environment to run this project, one for schema linking, another for sql generate.
Schema Linking Environment
Create a virtual anaconda environment:
Active it and install the cuda version Pytorch:
Install other required modules and tools:
SQL Generation Environment
Create a virtual anaconda environment:
Active it and install the cuda version Pytorch:
Install other required modules and tools:
Prepare data
Create directories to store prediction results and preprocessed data.
Download data from here data.
Inference
The result of executing this command is a file located at
./data/predict_result/sqlgpt.sql.