diff options
author | Yigit Sever | 2019-09-17 20:56:36 +0300 |
---|---|---|
committer | Yigit Sever | 2019-09-17 20:56:36 +0300 |
commit | 2c763b88c5c376c8dc39f1bef058449a2865d1c6 (patch) | |
tree | a5b437324e6509e838fb53e2c5ffeeb967f0f703 /get_data.sh | |
parent | 4add85258bacedab23db82631c887d3b07c40f80 (diff) | |
download | Evaluating-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-x | get_data.sh | 13 |
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 | |||
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 | mv "${WNET}/iwn" "${WNET}/ita" | 46 | mv "${WNET}/iwn" "${WNET}/ita" |
47 | 47 | ||
48 | |||
49 | echo "Creating .def files" | ||
50 | |||
48 | TAB_DIR="${WNET}/tab_files" | 51 | TAB_DIR="${WNET}/tab_files" |
49 | mkdir -p "${TAB_DIR}" | 52 | mkdir -p "${TAB_DIR}" |
50 | 53 | ||
51 | for filename in ${WNET}/*/wn-data*.tab; do | 54 | for filename in ${WNET}/*/wn-data*.tab; do |
52 | echo ">>>$filename" | ||
53 | ${ROOT}/tab_creator.pl $filename | 55 | ${ROOT}/tab_creator.pl $filename |
54 | done | 56 | done |
55 | 57 | ||
58 | 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 | ||
59 | IFS=',' read -r source_lang target_lang <<< "${PAIR}" | ||
60 | python ${ROOT}/prep_lookup.py -s "${source_lang}" -t "${target_lang}" | ||
61 | done | ||
62 | |||
63 | READY="${WNET}/ready" | ||
64 | mkdir -p "${READY}" | ||
65 | mv ${ROOT}/*.def "${READY}" | ||
66 | |||
56 | echo "Downloading dictionaries" | 67 | echo "Downloading dictionaries" |
57 | 68 | ||
58 | DICT="${ROOT}/dictionaries" | 69 | DICT="${ROOT}/dictionaries" |