-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathrun.sh
More file actions
16 lines (12 loc) · 757 Bytes
/
run.sh
File metadata and controls
16 lines (12 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
db_root_path='./data/dev_databases'
mode='dev'
meaning_output_path='./outputs/column_meaning.json'
sql_output_path='./outputs/predict_dev.json'
#As stated in Appendix A.1, we first generate a succint description for each column.
#You can comment out the following code and directly utilize './outputs/column_meaning.json' to bypass this step
# echo 'Generate succient column descriptions.'
# python3 ./src/conclude_meaning.py --db_root_path ${db_root_path} --mode ${mode} --output_path ${meaning_output_path}
# echo 'Description generation is finished.'
echo 'Generate SQLs.'
python3 ./run.py --db_root_path ${db_root_path} --mode ${mode} --column_meaning_path ${meaning_output_path} --output_path ${sql_output_path}
echo 'SQL generation is finished.'