word2vec/demo-analogy.sh

12 lines
631 B
Bash
Raw Normal View History

2013-08-01 01:00:52 +02:00
make
if [ ! -e text8 ]; then
wget http://mattmahoney.net/dc/text8.zip -O text8.gz
gzip -d text8.gz -f
fi
2014-09-06 18:54:27 +02:00
echo ---------------------------------------------------------------------------------------------------
echo Note that for the word analogy to perform well, the model should be trained on much larger data set
2013-08-01 01:00:52 +02:00
echo Example input: paris france berlin
2014-09-06 18:54:27 +02:00
echo ---------------------------------------------------------------------------------------------------
time ./word2vec -train text8 -output vectors.bin -cbow 1 -size 200 -window 8 -negative 25 -hs 0 -sample 1e-4 -threads 20 -binary 1 -iter 15
2013-08-01 01:00:52 +02:00
./word-analogy vectors.bin