diff options
-rwxr-xr-x | get_data.sh | 14 |
1 files 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}" | |||
37 | 37 | ||
38 | echo "Unzipping wordnet data" | 38 | echo "Unzipping wordnet data" |
39 | 39 | ||
40 | for LANG in als bul ell ita ron slv; do | 40 | for lang in als bul ell ita ron slv; do |
41 | unzip -ofq "${WNET}/${LANG}.zip" -d "${WNET}" | 41 | unzip -o -f -q "${WNET}/${lang}.zip" -d "${WNET}" |
42 | rm -f "${WNET}/${LANG}.zip" | 42 | # rm -f "${WNET}/${lang}.zip" |
43 | done | 43 | done |
44 | 44 | ||
45 | rm -rf "${WNET}/ita" # comes alongside iwn, not useful for us | 45 | rm -rf "${WNET}/ita/" # comes alongside iwn, not useful for us |
46 | 46 | ||
47 | echo "Downloading dictionaries" | 47 | echo "Downloading dictionaries" |
48 | 48 | ||
@@ -84,6 +84,6 @@ TEST_DIR="${DICT}/test" | |||
84 | mkdir -p "${TRAIN_DIR}" | 84 | mkdir -p "${TRAIN_DIR}" |
85 | mkdir -p "${TEST_DIR}" | 85 | mkdir -p "${TEST_DIR}" |
86 | 86 | ||
87 | mv ${DICT}/*.train ${TRAIN_DIR} | 87 | mv "${DICT}"/*.train "${TRAIN_DIR}" |
88 | mv ${DICT}/*.test ${TEST_DIR} | 88 | mv "${DICT}"/*.test "${TEST_DIR}" |
89 | rm -f ${DICT}/*.dic | 89 | rm -f "${DICT}"/*.dic |