From bd128d67325385e6fda637368e1711aadd1b317f Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 17 Sep 2019 16:27:10 +0300 Subject: get_embeddings LANG fix --- get_embeddings.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'get_embeddings.sh') 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. echo "Extracting embeddings" -for LANG in sq bg el it ro sl; do - gunzip "${EMBS}/cc.${LANG}.300.vec.gz" - mv "${EMBS}/cc.${LANG}.300.vec.gz" "${EMBS}/${LANG}.1M.vec" +for lang_code in sq bg el it ro sl; do + gunzip "${EMBS}/cc.${lang_code}.300.vec.gz" + mv "${EMBS}/cc.${lang_code}.300.vec" "${EMBS}/${lang_code}.1M.vec" done -unzip -ofq "${EMBS}/crawl-300d-2M.vec.zip" -d "${EMBS}" -mv "${EMBS}/crawl-300d-2M.vec" "${EMBS}/en.vec" +unzip -q "${EMBS}/crawl-300d-2M.vec.zip" -d "${EMBS}" +mv "${EMBS}/crawl-300d-2M.vec" "${EMBS}/en.1M.vec" -- cgit v1.2.3-70-g09d2