From 2c763b88c5c376c8dc39f1bef058449a2865d1c6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 17 Sep 2019 20:56:36 +0300 Subject: Creating .def files from scratch --- get_data.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'get_data.sh') 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 rm -rf "${WNET}/ita/" # comes alongside iwn, not useful for us mv "${WNET}/iwn" "${WNET}/ita" + +echo "Creating .def files" + TAB_DIR="${WNET}/tab_files" mkdir -p "${TAB_DIR}" for filename in ${WNET}/*/wn-data*.tab; do - echo ">>>$filename" ${ROOT}/tab_creator.pl $filename done +for 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 + IFS=',' read -r source_lang target_lang <<< "${PAIR}" + python ${ROOT}/prep_lookup.py -s "${source_lang}" -t "${target_lang}" +done + +READY="${WNET}/ready" +mkdir -p "${READY}" +mv ${ROOT}/*.def "${READY}" + echo "Downloading dictionaries" DICT="${ROOT}/dictionaries" -- cgit v1.2.3-70-g09d2