Code for Zero-shot Text-to-SQL Learning with Auxiliary Task
Please use Python 3.6 and Pytorch 1.3. Other Python dependency is in requirement.txt. Install Python dependency with:
pip install -r requirements.txt
Data can be found from google drive. Please download them and extract them into root path.
cd data_model/wikisql
python make_zs.py
python make_fs.py
cd zero-shot-text-to-SQL
./run.sh GPU_ID
- This implementation is based on coarse2fine.
- The preprocessing and evaluation code used for WikiSQL is from salesforce/WikiSQL.