Skip to content

Commit 0e3a82a

Browse files
author
tmikolov
committed
aa
1 parent d9ebc75 commit 0e3a82a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

demo-phrases.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
21
make clean
32
make
4-
wget http://mattmahoney.net/dc/text8.zip -O text8.gz
5-
gzip -d text8.gz -f
3+
if [ ! -e text8 ]; then
4+
wget http://mattmahoney.net/dc/text8.zip -O text8.gz
5+
gzip -d text8.gz -f
6+
fi
67
time ./word2phrase -train text8 -output text8-phrase -threshold 200 -debug 2
78
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
8-
./distance vectors-phrase.bin
9+
./distance vectors-phrase.bin

0 commit comments

Comments
 (0)