diff options
author | Yigit Sever | 2019-09-17 16:27:10 +0300 |
---|---|---|
committer | Yigit Sever | 2019-09-17 16:27:10 +0300 |
commit | bd128d67325385e6fda637368e1711aadd1b317f (patch) | |
tree | 6ec62fc9e216f8b07d454b3bc982c545743619f9 /get_embeddings.sh | |
parent | 5f5d887a26c1293dda83090f67535aa08533a7d5 (diff) | |
download | Evaluating-Dictionary-Alignment-bd128d67325385e6fda637368e1711aadd1b317f.tar.gz Evaluating-Dictionary-Alignment-bd128d67325385e6fda637368e1711aadd1b317f.tar.bz2 Evaluating-Dictionary-Alignment-bd128d67325385e6fda637368e1711aadd1b317f.zip |
get_embeddings LANG fix
Diffstat (limited to 'get_embeddings.sh')
-rwxr-xr-x | get_embeddings.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/get_embeddings.sh b/get_embeddings.sh index dde7839..aba2078 100755 --- a/get_embeddings.sh +++ b/get_embeddings.sh | |||
@@ -37,10 +37,10 @@ wget -nc -q https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.sl.300.vec. | |||
37 | 37 | ||
38 | echo "Extracting embeddings" | 38 | echo "Extracting embeddings" |
39 | 39 | ||
40 | for LANG in sq bg el it ro sl; do | 40 | for lang_code in sq bg el it ro sl; do |
41 | gunzip "${EMBS}/cc.${LANG}.300.vec.gz" | 41 | gunzip "${EMBS}/cc.${lang_code}.300.vec.gz" |
42 | mv "${EMBS}/cc.${LANG}.300.vec.gz" "${EMBS}/${LANG}.1M.vec" | 42 | mv "${EMBS}/cc.${lang_code}.300.vec" "${EMBS}/${lang_code}.1M.vec" |
43 | done | 43 | done |
44 | 44 | ||
45 | unzip -ofq "${EMBS}/crawl-300d-2M.vec.zip" -d "${EMBS}" | 45 | unzip -q "${EMBS}/crawl-300d-2M.vec.zip" -d "${EMBS}" |
46 | mv "${EMBS}/crawl-300d-2M.vec" "${EMBS}/en.vec" | 46 | mv "${EMBS}/crawl-300d-2M.vec" "${EMBS}/en.1M.vec" |