-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_all_americas.sh
39 lines (37 loc) · 1.18 KB
/
run_all_americas.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
# 8s_random
# for lang in pa or as; do
# python iterate.py \
# -d ../naamapadam/${lang}_test.tsv \
# -sd ../naamapadam/hi_bn_gu_mr_train.tsv \
# -ssim ../naamapadam/sim/random_allsrc_sim.npy \
# -tr 0 -sr 8 -m gpt-4 \
# -p ner_8s_tsv_adapt -e 100 -y \
# -r new_results/gpt4/indic/8s_random/${lang}
# done
# 8s
MODEL=$1
LANG=$2
PROMPT=$3
OUTPUT=$4
for lang in ${LANG}; do
python iterate.py \
-d data/processed/test_${lang}.tsv \
-sd data/processed/train_en_es.tsv \
-ssim data/processed/test_${lang}_src_en_es_sim.npy \
-tr 0 -sr 8 -m ${MODEL} \
-p ${PROMPT} -e 100 -y \
-t 0.0 \
-r ${OUTPUT}/${MODEL}/americas/8s/${lang}
done
# # 8t
# for lang in ${LANG}; do
# python iterate.py \
# -d data/processed/test_${lang}.tsv \
# -sd ../naamapadam/hi_bn_gu_mr_train.tsv \
# -td new_results/gpt4/indic/8s/${lang}/responses.json \
# -ssim ../naamapadam/sim/${lang}_allsrc_sim.npy \
# -tsim ../naamapadam/sim/${lang}_100_sim.npy \
# -tr 8 -sr 0 -m gpt-4 \
# -p ner_8s_tsv_adapt -e 100 -y \
# -r new_results/gpt4/indic/8t/${lang}
# done