2013-07-30 07:37:54 +02:00
|
|
|
make
|
2013-08-01 01:01:50 +02:00
|
|
|
if [ ! -e text8 ]; then
|
|
|
|
wget http://mattmahoney.net/dc/text8.zip -O text8.gz
|
|
|
|
gzip -d text8.gz -f
|
|
|
|
fi
|
2013-08-01 21:29:23 +02:00
|
|
|
time ./word2phrase -train text8 -output text8-phrase -threshold 500 -debug 2
|
|
|
|
time ./word2vec -train text8-phrase -output vectors-phrase.bin -cbow 0 -size 300 -window 10 -negative 0 -hs 1 -sample 1e-3 -threads 12 -binary 1
|
2013-08-01 01:01:50 +02:00
|
|
|
./distance vectors-phrase.bin
|