-
Notifications
You must be signed in to change notification settings - Fork 8
/
eval.sh
36 lines (28 loc) · 1.08 KB
/
eval.sh
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
data_path=$1
llm_output_path=$2
output_dir=$3
api_key=$4
api_base=$5
model_name=$6
python3 evaluation/llm_based_extraction.py \
--data_path $data_path \
--llm_output_path $llm_output_path \
--output_path "${output_dir}/${model_name}_llm_extraction_results.jsonl" \
--api_key $api_key \
--api_base $api_base
python3 evaluation/llm_based_evaluation.py \
--data_path $data_path \
--llm_output_path $llm_output_path \
--output_path "${output_dir}/${model_name}_llm_evaluation_results.jsonl" \
--api_key $api_key \
--api_base $api_base
python3 evaluation/rule_based_evaluation.py \
--data_path $data_path \
--extraction_path "${output_dir}/${model_name}_llm_extraction_results.jsonl" \
--output_path "${output_dir}/${model_name}_rule_evaluation_results.jsonl"
python3 evaluation/aggregation.py \
--data_path $data_path \
--llm_evaluation_path "${output_dir}/${model_name}_llm_evaluation_results.jsonl" \
--rule_evaluation_path "${output_dir}/${model_name}_rule_evaluation_results.jsonl" \
--model $model_name \
--output_path $output_dir