Skip to content

Commit

Permalink
Revert demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Jan 16, 2019
1 parent 0cae999 commit ead43a2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh -e

if [ ! -e text8 ]; then
echo "Download text8 corpus"
if hash wget 2>/dev/null; then
wget -q --show-progress http://mattmahoney.net/dc/text8.zip
else
curl --progress-bar -O http://mattmahoney.net/dc/text8.zip
fi

echo "Unzip text8.zip"
unzip text8.zip
rm text8.zip
fi

go run wego.go word2vec --inputFile text8 --model skip-gram --optimizer ns --outputFile example/word_vectors_sg.txt -d 100 && \
echo "Save trained vectors to example/word_vectors_sg.txt"

0 comments on commit ead43a2

Please sign in to comment.