From 4ce4680754128371acbfcd771d516fa6229ba440 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 16 Sep 2019 22:29:39 +0300 Subject: Don't use unnecessary space --- get_embeddings.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/get_embeddings.sh b/get_embeddings.sh index 0c5d918..dde7839 100755 --- a/get_embeddings.sh +++ b/get_embeddings.sh @@ -38,6 +38,9 @@ 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 -fc "${EMBS}/cc.${LANG}.300.vec.gz" > "${EMBS}/${LANG}.1M.vec" - rm -f "${EMBS}/cc.${LANG}.300.vec.gz" + gunzip "${EMBS}/cc.${LANG}.300.vec.gz" + mv "${EMBS}/cc.${LANG}.300.vec.gz" "${EMBS}/${LANG}.1M.vec" done + +unzip -ofq "${EMBS}/crawl-300d-2M.vec.zip" -d "${EMBS}" +mv "${EMBS}/crawl-300d-2M.vec" "${EMBS}/en.vec" -- cgit v1.2.3-70-g09d2