From 5f5d887a26c1293dda83090f67535aa08533a7d5 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 17 Sep 2019 16:26:55 +0300 Subject: Get data LANG fix --- get_data.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/get_data.sh b/get_data.sh index 335a1f1..d6487bf 100755 --- a/get_data.sh +++ b/get_data.sh @@ -37,12 +37,12 @@ wget -nc -q http://compling.hss.ntu.edu.sg/omw/wns/slv.zip -P "${WNET}" echo "Unzipping wordnet data" -for LANG in als bul ell ita ron slv; do - unzip -ofq "${WNET}/${LANG}.zip" -d "${WNET}" - rm -f "${WNET}/${LANG}.zip" +for lang in als bul ell ita ron slv; do + unzip -o -f -q "${WNET}/${lang}.zip" -d "${WNET}" +# rm -f "${WNET}/${lang}.zip" done -rm -rf "${WNET}/ita" # comes alongside iwn, not useful for us +rm -rf "${WNET}/ita/" # comes alongside iwn, not useful for us echo "Downloading dictionaries" @@ -84,6 +84,6 @@ TEST_DIR="${DICT}/test" mkdir -p "${TRAIN_DIR}" mkdir -p "${TEST_DIR}" -mv ${DICT}/*.train ${TRAIN_DIR} -mv ${DICT}/*.test ${TEST_DIR} -rm -f ${DICT}/*.dic +mv "${DICT}"/*.train "${TRAIN_DIR}" +mv "${DICT}"/*.test "${TEST_DIR}" +rm -f "${DICT}"/*.dic -- cgit v1.2.3-70-g09d2