aboutsummaryrefslogtreecommitdiffstats
path: root/get_embeddings.sh
diff options
context:
space:
mode:
authorYigit Sever2019-09-18 16:51:59 +0300
committerYigit Sever2019-09-18 16:51:59 +0300
commite70d946dba8fe8c145f18273930f28d84f144e0c (patch)
tree08df7c2f9b24e78838775985583edfa511a6ddfc /get_embeddings.sh
parent2b69578cc03d772d5999b1a651c0bedbf92fded4 (diff)
downloadEvaluating-Dictionary-Alignment-e70d946dba8fe8c145f18273930f28d84f144e0c.tar.gz
Evaluating-Dictionary-Alignment-e70d946dba8fe8c145f18273930f28d84f144e0c.tar.bz2
Evaluating-Dictionary-Alignment-e70d946dba8fe8c145f18273930f28d84f144e0c.zip
Fix get_embeddings sed bug
Diffstat (limited to 'get_embeddings.sh')
-rwxr-xr-xget_embeddings.sh2
1 files changed, 1 insertions, 1 deletions
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"
48 48
49# truncate to top 500k tokens for efficiency 49# truncate to top 500k tokens for efficiency
50for lang_code in bg en el it ro sl sq; do 50for lang_code in bg en el it ro sl sq; do
51 sed -in '1,500001!d' "${EMBS}/${lang_code}.vec" 51 sed -i '1,500001!d' "${EMBS}/${lang_code}.vec"
52 sed -i '1 s/^.*$/500000 300/' "${EMBS}/${lang_code}.vec" 52 sed -i '1 s/^.*$/500000 300/' "${EMBS}/${lang_code}.vec"
53done 53done