diff options
author | Yigit Sever | 2019-09-26 23:22:47 +0300 |
---|---|---|
committer | Yigit Sever | 2019-09-26 23:22:47 +0300 |
commit | eb8c0e749b9739baea924245802797e64eece799 (patch) | |
tree | 3e4d56161d81094bfb7a0a4b5552dbfae8b85504 /get_data.sh | |
parent | 6cd52b0ae6c6786e99fbe764f87cf5e7ac3d9369 (diff) | |
download | Evaluating-Dictionary-Alignment-eb8c0e749b9739baea924245802797e64eece799.tar.gz Evaluating-Dictionary-Alignment-eb8c0e749b9739baea924245802797e64eece799.tar.bz2 Evaluating-Dictionary-Alignment-eb8c0e749b9739baea924245802797e64eece799.zip |
Create .tsv files in get_data
Diffstat (limited to 'get_data.sh')
-rwxr-xr-x | get_data.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/get_data.sh b/get_data.sh index 4f97ad5..91f790c 100755 --- a/get_data.sh +++ b/get_data.sh | |||
@@ -58,12 +58,17 @@ done | |||
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 | 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}" | 59 | IFS=',' read -r source_lang target_lang <<< "${PAIR}" |
60 | python "${SCRIPTS}/prep_lookup.py" -s "${source_lang}" -t "${target_lang}" | 60 | python "${SCRIPTS}/prep_lookup.py" -s "${source_lang}" -t "${target_lang}" |
61 | python "${SCRIPTS}/tsv_creator.py" "${source_lang}" "${target_lang}" | ||
61 | done | 62 | done |
62 | 63 | ||
63 | READY="${WNET}/ready" | 64 | READY="${WNET}/ready" |
64 | mkdir -p "${READY}" | 65 | mkdir -p "${READY}" |
65 | mv "${ROOT}"/*.def "${READY}" | 66 | mv "${ROOT}"/*.def "${READY}" |
66 | 67 | ||
68 | TSV_DIR="${WNET}/tsv_files" | ||
69 | mkdir -p "${TSV_DIR}" | ||
70 | mv "${ROOT}"/*.tsv "${TSV_DIR}" | ||
71 | |||
67 | echo "Downloading dictionaries" | 72 | echo "Downloading dictionaries" |
68 | 73 | ||
69 | DICT="${ROOT}/dictionaries" | 74 | DICT="${ROOT}/dictionaries" |