We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8609b1 commit 3cdf881Copy full SHA for 3cdf881
1 file changed
demo-word-accuracy.sh
@@ -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