We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9ebc75 commit 0e3a82aCopy full SHA for 0e3a82a
1 file changed
demo-phrases.sh
@@ -1,8 +1,9 @@
1
-
2
make clean
3
make
4
-wget http://mattmahoney.net/dc/text8.zip -O text8.gz
5
-gzip -d text8.gz -f
+if [ ! -e text8 ]; then
+ wget http://mattmahoney.net/dc/text8.zip -O text8.gz
+ gzip -d text8.gz -f
6
+fi
7
time ./word2phrase -train text8 -output text8-phrase -threshold 200 -debug 2
8
time ./word2vec -train text8-phrase -output vectors-phrase.bin -cbow 1 -size 200 -window 5 -negative 5 -hs 0 -sample 1e-3 -threads 12 -binary 1
-./distance vectors-phrase.bin
9
+./distance vectors-phrase.bin
0 commit comments