From 35d2af6a15ec2070dd3c28e5d28212c42770b7fe Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 27 Sep 2019 22:04:33 +0300 Subject: Include batch scripts --- run_wmd.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 run_wmd.sh (limited to 'run_wmd.sh') 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 @@ +#!/bin/bash + +set -o errexit -o pipefail -o noclobber -o nounset + +ROOTDIR="$(pwd)" +ready_vectors_path="${ROOTDIR}/bilingual_embeddings" +wordnets_path="${ROOTDIR}/wordnets/ready" + +for 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 + IFS=',' read -r source_lang target_lang <<< "${i}" + echo "WMD + SNK: ${source_lang} - ${target_lang}" + source_vec="${ready_vectors_path}/${source_lang}_to_${target_lang}.vec" + target_vec="${ready_vectors_path}/${target_lang}_to_${source_lang}.vec" + source_def="${wordnets_path}/${source_lang}_to_${target_lang}.def" + target_def="${wordnets_path}/${target_lang}_to_${source_lang}.def" + python "${ROOTDIR}/WMD.py" "${source_lang}" "${target_lang}" "${source_vec}" "${target_vec}" "${source_def}" "${target_def}" all all -n 1000 -b + sleep 5 +done -- cgit v1.2.3-70-g09d2