From e70d946dba8fe8c145f18273930f28d84f144e0c Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 18 Sep 2019 16:51:59 +0300 Subject: Fix get_embeddings sed bug --- get_embeddings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'get_embeddings.sh') diff --git a/get_embeddings.sh b/get_embeddings.sh index b53d493..66af5af 100755 --- a/get_embeddings.sh +++ b/get_embeddings.sh @@ -48,6 +48,6 @@ rm -f "${EMBS}/crawl-300d-2M.vec.zip" # truncate to top 500k tokens for efficiency for lang_code in bg en el it ro sl sq; do - sed -in '1,500001!d' "${EMBS}/${lang_code}.vec" + sed -i '1,500001!d' "${EMBS}/${lang_code}.vec" sed -i '1 s/^.*$/500000 300/' "${EMBS}/${lang_code}.vec" done -- cgit v1.2.3-70-g09d2