Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Fixed bootstrap script
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrevinnoc committed Mar 6, 2021
1 parent ee52907 commit b05c669
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ python3 -c "import nltk; nltk.download('wordnet')"

wget http://nlp.stanford.edu/data/glove.6B.zip
unzip -d "glove.6B" glove.6B.zip
rm -rf glove.6B/glove.6B.100d.txt glove.6B/glove.6B.200d.txt glove.6B/glove.6B.300d.txt
GLOVE_SIZE=$(du glove.6B/glove.6B.50d.txt | cut -f1)
rm -rf glove.6B/glove.6B.100d.txt glove.6B/glove.6B.200d.txt glove.6B/glove.6B.300d.txt glove.6B.zip
GLOVE_LINE=$(head -n 1 glove.6B/glove.6B.50d.txt)

if [ "$GLOVE_SIZE" -lt "167336" ]
if [ "$GLOVE_LINE" != "400000 50" ]
then
sed -i '1i 400000 50' glove.6B/glove.6B.50d.txt
fi
Expand Down

0 comments on commit b05c669

Please sign in to comment.