###
 # This script evaluates consistency of the results generated by our models
###

TASK=senti
if [[ $TASK == "mrc" ]]; then
    MODELS=("roberta_base" "roberta_large")
    MODES=("attention" "integrated_gradient")
else
    MODELS=("lstm" "roberta_base" "roberta_large")
    MODES=("attention" "integrated_gradient" "lime")
fi

for BASE_MODEL in ${MODELS[*]};
do
    for INTER_MODE in ${MODES[*]};
    do
        for LANGUAGE in "ch" "en";
        do
            echo ${BASE_MODEL}_${INTER_MODE}_${LANGUAGE}
            GOLDEN_PATH=../golden/${TASK}_${LANGUAGE}.tsv
            PRED_PATH=../../rationale_extraction/evaluation_data/${TASK}/${BASE_MODEL}_${INTER_MODE}_${LANGUAGE}

            python3 ./cal_map.py \
                --golden_path $GOLDEN_PATH \
                --pred_path $PRED_PATH \
                --language $LANGUAGE 
                
        done
    done
done