aboutsummaryrefslogtreecommitdiffstats
path: root/get_data.sh
diff options
context:
space:
mode:
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"