-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheval.sh
41 lines (32 loc) · 1.45 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
37
38
39
40
41
set -e
## Change if you've used your own model to create evaluation data.
echo "Change Language to PT if running PT!"
language='EN'
basefolder="../../CreateEvaluationData/${language}/WithResults/"
model='BERT'
if [ "$language" == "PT" ]
then
model='mBERT'
fi
## Not making use of special tokens.
echo "bert-base-cased-tokenised, evalData"
python ../../Evaluation/task2Evaluation.py \
"output-no-git/$model/STModels/bert-base-cased-tokenised/v3-s2/" \
"${basefolder}/evalData/"
echo "****************************************************************************************************"
## Make use of special tokens.
echo "bert-base-cased-tokenised, evalDataAllTokenised"
python ../../Evaluation/task2Evaluation.py \
"output-no-git/$model/STModels/bert-base-cased-tokenised/v3-s2/" \
"${basefolder}/evalDataAllTokenised/"
echo "****************************************************************************************************"
echo "pt-e5-all evalDataAllTokenised"
python ../../Evaluation/task2Evaluation.py \
"output-no-git/$model/STModels/pt-e5-all/v3-s5/" \
"${basefolder}/evalDataAllTokenised/"
echo "****************************************************************************************************"
echo "pt-e5-select evalDataSelectTokenised"
python ../../Evaluation/task2Evaluation.py \
"output-no-git/$model/STModels/pt-e5-select/v3-s5/" \
"${basefolder}/evalDataSelectTokenised/"
done