File size: 2,287 Bytes
778d47d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
db_root_path='data/bird-062024/dev/dev_databases/'
data_mode='dev'
diff_json_path='data/bird-062024/dev/dev.json'
predicted_sql_path=$1
ground_truth_path='data/bird-062024/dev/'
num_cpus=16
meta_time_out=30.0
mode_gt='gt'
mode_predict='gpt'

# db_root_path='./data/sft_data_collections/bird/dev/dev_databases/'
# data_mode='dev'
# diff_json_path='./data/sft_data_collections/bird/dev/dev.json'
# # predicted_sql_path=$1
# ground_truth_path='./data/sft_data_collections/bird/dev/'
# num_cpus=16
# meta_time_out=30.0
# mode_gt='gt'
# mode_predict='gpt'

echo '''starting to compare with knowledge for ex'''
python3 -u ./bird_evaluation/evaluation.py --db_root_path ${db_root_path} --predicted_sql_path $1 --data_mode ${data_mode} \
--ground_truth_path ${ground_truth_path} --num_cpus ${num_cpus} --mode_gt ${mode_gt} --mode_predict ${mode_predict} \
--diff_json_path ${diff_json_path} --meta_time_out ${meta_time_out}

echo '''starting to compare with knowledge for ves'''
python3 -u ./bird_evaluation/evaluation_ves.py --db_root_path ${db_root_path} --predicted_sql_path $1 --data_mode ${data_mode} 	--ground_truth_path ${ground_truth_path} --num_cpus ${num_cpus} --mode_gt ${mode_gt} --mode_predict ${mode_predict}  --diff_json_path ${diff_json_path} --meta_time_out ${meta_time_out}



# db_root_path='./data/dev/dev_databases/'
# data_mode='dev'
# diff_json_path='./data/dev/dev.json'
# predicted_sql_path=$1
# ground_truth_path='./data/dev/'
# num_cpus=16
# meta_time_out=30.0
# mode_gt='gt'
# mode_predict='gpt'

# echo '''starting to compare with knowledge for ex'''
# python3 -u ./bird_evaluation/evaluation_062024.py --db_root_path ${db_root_path} --predicted_sql_path ${predicted_sql_path} --data_mode ${data_mode} \
# --ground_truth_path ${ground_truth_path} --num_cpus ${num_cpus} --mode_gt ${mode_gt} --mode_predict ${mode_predict} \
# --diff_json_path ${diff_json_path} --meta_time_out ${meta_time_out}

# echo '''starting to compare with knowledge for ves'''
# python3 -u ./bird_evaluation/evaluation_ves.py --db_root_path ${db_root_path} --predicted_sql_path $1 --data_mode ${data_mode} 	--ground_truth_path ${ground_truth_path} --num_cpus ${num_cpus} --mode_gt ${mode_gt} --mode_predict ${mode_predict}  --diff_json_path ${diff_json_path} --meta_time_out ${meta_time_out}