diff options
author | Yigit Sever | 2019-09-18 16:51:59 +0300 |
---|---|---|
committer | Yigit Sever | 2019-09-18 16:51:59 +0300 |
commit | e70d946dba8fe8c145f18273930f28d84f144e0c (patch) | |
tree | 08df7c2f9b24e78838775985583edfa511a6ddfc | |
parent | 2b69578cc03d772d5999b1a651c0bedbf92fded4 (diff) | |
download | Evaluating-Dictionary-Alignment-e70d946dba8fe8c145f18273930f28d84f144e0c.tar.gz Evaluating-Dictionary-Alignment-e70d946dba8fe8c145f18273930f28d84f144e0c.tar.bz2 Evaluating-Dictionary-Alignment-e70d946dba8fe8c145f18273930f28d84f144e0c.zip |
Fix get_embeddings sed bug
-rwxr-xr-x | get_embeddings.sh | 2 |
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 |
50 | for lang_code in bg en el it ro sl sq; do | 50 | for 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" |
53 | done | 53 | done |