aboutsummaryrefslogtreecommitdiffstats
path: root/get_data.sh
diff options
context:
space:
mode:
authorYigit Sever2019-09-17 20:56:36 +0300
committerYigit Sever2019-09-17 20:56:36 +0300
commit2c763b88c5c376c8dc39f1bef058449a2865d1c6 (patch)
treea5b437324e6509e838fb53e2c5ffeeb967f0f703 /get_data.sh
parent4add85258bacedab23db82631c887d3b07c40f80 (diff)
downloadEvaluating-Dictionary-Alignment-2c763b88c5c376c8dc39f1bef058449a2865d1c6.tar.gz
Evaluating-Dictionary-Alignment-2c763b88c5c376c8dc39f1bef058449a2865d1c6.tar.bz2
Evaluating-Dictionary-Alignment-2c763b88c5c376c8dc39f1bef058449a2865d1c6.zip
Creating .def files from scratch
Diffstat (limited to 'get_data.sh')
-rwxr-xr-xget_data.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/get_data.sh b/get_data.sh
index 934c5db..f943722 100755
--- a/get_data.sh
+++ b/get_data.sh
@@ -45,14 +45,25 @@ done
45rm -rf "${WNET}/ita/" # comes alongside iwn, not useful for us 45rm -rf "${WNET}/ita/" # comes alongside iwn, not useful for us
46mv "${WNET}/iwn" "${WNET}/ita" 46mv "${WNET}/iwn" "${WNET}/ita"
47 47
48
49echo "Creating .def files"
50
48TAB_DIR="${WNET}/tab_files" 51TAB_DIR="${WNET}/tab_files"
49mkdir -p "${TAB_DIR}" 52mkdir -p "${TAB_DIR}"
50 53
51for filename in ${WNET}/*/wn-data*.tab; do 54for filename in ${WNET}/*/wn-data*.tab; do
52 echo ">>>$filename"
53 ${ROOT}/tab_creator.pl $filename 55 ${ROOT}/tab_creator.pl $filename
54done 56done
55 57
58for PAIR 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
59 IFS=',' read -r source_lang target_lang <<< "${PAIR}"
60 python ${ROOT}/prep_lookup.py -s "${source_lang}" -t "${target_lang}"
61done
62
63READY="${WNET}/ready"
64mkdir -p "${READY}"
65mv ${ROOT}/*.def "${READY}"
66
56echo "Downloading dictionaries" 67echo "Downloading dictionaries"
57 68
58DICT="${ROOT}/dictionaries" 69DICT="${ROOT}/dictionaries"