aboutsummaryrefslogtreecommitdiffstats
path: root/run_supervised.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_supervised.sh')
-rwxr-xr-xrun_supervised.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/run_supervised.sh b/run_supervised.sh
new file mode 100755
index 0000000..30cc548
--- /dev/null
+++ b/run_supervised.sh
@@ -0,0 +1,16 @@
1#!/bin/bash
2
3set -o errexit -o pipefail -o noclobber -o nounset
4
5ROOTDIR="$(pwd)"
6ready_vectors_path="${ROOTDIR}/bilingual_embeddings"
7tsv_path="${ROOTDIR}/wordnets/tsv_files"
8
9for i in en,bg en,el en,it, en,ro, en,sl en,sq, bg,el bg,it bg,ro el,it el,ro el,sq it,ro ro,sl ro,sq; do
10 IFS=',' read -r source_lang target_lang <<< "${i}"
11 source_vec="${ready_vectors_path}/${source_lang}_to_${target_lang}.vec"
12 target_vec="${ready_vectors_path}/${target_lang}_to_${source_lang}.vec"
13 data_file="${tsv_path}/${source_lang}_to_${target_lang}.tsv"
14 python "${ROOTDIR}/learn_and_predict.py" -sl "${source_lang}" -tl "${target_lang}" -df "${data_file}" -es "${source_vec}" -et "${target_vec}" -b
15 sleep 5
16done