forked from facebookresearch/simmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_evaluate_gpt2.sh
executable file
·31 lines (27 loc) · 1.59 KB
/
run_evaluate_gpt2.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
#!/bin/bash
if [[ $# -lt 1 ]]
then
PATH_DIR=$(realpath .)
else
PATH_DIR=$(realpath "$1")
fi
# Evaluate (furniture, non-multimodal)
python -m gpt2_dst.scripts.evaluate \
--input_path_target="${PATH_DIR}"/gpt2_dst/data/furniture_to/furniture_devtest_dials_target.txt \
--input_path_predicted="${PATH_DIR}"/gpt2_dst/results/furniture_to/furniture_devtest_dials_predicted.txt \
--output_path_report="${PATH_DIR}"/gpt2_dst/results/furniture_to/furniture_devtest_dials_report.json
# Evaluate (furniture, multi-modal)
python -m gpt2_dst.scripts.evaluate \
--input_path_target="${PATH_DIR}"/gpt2_dst/data/furniture/furniture_devtest_dials_target.txt \
--input_path_predicted="${PATH_DIR}"/gpt2_dst/results/furniture/furniture_devtest_dials_predicted.txt \
--output_path_report="${PATH_DIR}"/gpt2_dst/results/furniture/furniture_devtest_dials_report.json
# Evaluate (Fashion, non-multimodal)
python -m gpt2_dst.scripts.evaluate \
--input_path_target="${PATH_DIR}"/gpt2_dst/data/fashion_to/fashion_devtest_dials_target.txt \
--input_path_predicted="${PATH_DIR}"/gpt2_dst/results/fashion_to/fashion_devtest_dials_predicted.txt \
--output_path_report="${PATH_DIR}"/gpt2_dst/results/fashion_to/fashion_devtest_dials_report.json
# Evaluate (Fashion, multi-modal)
python -m gpt2_dst.scripts.evaluate \
--input_path_target="${PATH_DIR}"/gpt2_dst/data/fashion/fashion_devtest_dials_target.txt \
--input_path_predicted="${PATH_DIR}"/gpt2_dst/results/fashion/fashion_devtest_dials_predicted.txt \
--output_path_report="${PATH_DIR}"/gpt2_dst/results/fashion/fashion_devtest_dials_report.json