diff options
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" |
