Skip to content

Commit 3cdf881

Browse files
author
tmikolov
committed
aa
1 parent d8609b1 commit 3cdf881

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

demo-word-accuracy.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
make
2+
if [ ! -e text8 ]; then
3+
wget http://mattmahoney.net/dc/text8.zip -O text8.gz
4+
gzip -d text8.gz -f
5+
fi
6+
time ./word2vec -train text8 -output vectors.bin -cbow 0 -size 200 -window 5 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1
7+
./compute-accuracy vectors.bin 30000 < questions-words.txt
8+
# to compute accuracy with the full vocabulary, use: ./compute-accuracy vectors.bin < questions-words.txt

0 commit comments

Comments
 (0)