-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_predictions_from_dev.sh
21 lines (21 loc) · 1.08 KB
/
get_predictions_from_dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
for model in bert-base-uncased protest-model
do
for decoding in --no-crf-decoding --crf-decoding
do
for mode in sentence
do
mkdir outputs/
if [ $decoding = "--crf-decoding" ]; then
decoding_boolean="True"
else
decoding_boolean="False"
fi
tar xvf /content/drive/My\ Drive/protest-predictions-and-models_bert_retrain_epochs/tagger_${model}_${decoding_boolean}_${mode}_1.0.tar.gz -C outputs/
mv outputs/outputs/tagger_${model}_${decoding_boolean}_${mode}_1.0 outputs/tagger_${model}_${decoding_boolean}_${mode}_1.0
protesta predict outputs/tagger_${model}_${decoding_boolean}_${mode}_1.0 /content/drive/My\ Drive/protesta-data/task3/dev.data
mv /content/drive/My\ Drive/protesta-data/task3/dev.tagger_${model}_${decoding_boolean}_${mode}_1.0 ./dev.predict
zip /content/drive/My\ Drive/protest-predictions-and-models_bert_retrain_epochs/dev_${model}_${decoding_boolean}_${mode}.zip ./dev.predict
rm -rf outputs/
done
done
done