aboutsummaryrefslogtreecommitdiffstats
path: root/run_wmd.sh
diff options
context:
space:
mode:
authorYigit Sever2019-09-27 22:04:33 +0300
committerYigit Sever2019-09-27 22:04:33 +0300
commit35d2af6a15ec2070dd3c28e5d28212c42770b7fe (patch)
treeaef66d80727e9a4441b01d0eebe50cfbf253d85e /run_wmd.sh
parent97848102702d1914fa208f06916ea597faa5ce24 (diff)
downloadEvaluating-Dictionary-Alignment-35d2af6a15ec2070dd3c28e5d28212c42770b7fe.tar.gz
Evaluating-Dictionary-Alignment-35d2af6a15ec2070dd3c28e5d28212c42770b7fe.tar.bz2
Evaluating-Dictionary-Alignment-35d2af6a15ec2070dd3c28e5d28212c42770b7fe.zip
Include batch scripts
Diffstat (limited to 'run_wmd.sh')
-rwxr-xr-xrun_wmd.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/run_wmd.sh b/run_wmd.sh
new file mode 100755
index 0000000..cb79f70
--- /dev/null
+++ b/run_wmd.sh
@@ -0,0 +1,18 @@
1#!/bin/bash
2
3set -o errexit -o pipefail -o noclobber -o nounset
4
5ROOTDIR="$(pwd)"
6ready_vectors_path="${ROOTDIR}/bilingual_embeddings"
7wordnets_path="${ROOTDIR}/wordnets/ready"
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 echo "WMD + SNK: ${source_lang} - ${target_lang}"
12 source_vec="${ready_vectors_path}/${source_lang}_to_${target_lang}.vec"
13 target_vec="${ready_vectors_path}/${target_lang}_to_${source_lang}.vec"
14 source_def="${wordnets_path}/${source_lang}_to_${target_lang}.def"
15 target_def="${wordnets_path}/${target_lang}_to_${source_lang}.def"
16 python "${ROOTDIR}/WMD.py" "${source_lang}" "${target_lang}" "${source_vec}" "${target_vec}" "${source_def}" "${target_def}" all all -n 1000 -b
17 sleep 5
18done