This commit is contained in:
tmikolov 2013-07-31 23:00:52 +00:00
parent 1bd5d7bbb8
commit d9ebc756df

12
demo-analogy.sh Normal file

@ -0,0 +1,12 @@
make clean
make
if [ ! -e text8 ]; then
wget http://mattmahoney.net/dc/text8.zip -O text8.gz
gzip -d text8.gz -f
fi
echo -----------------------------------------------------------------------------------------------------
echo Note that for the word analogy to perform well, the models should be trained on much larger data sets
echo Example input: paris france berlin
echo -----------------------------------------------------------------------------------------------------
time ./word2vec -train text8 -output vectors.bin -cbow 1 -size 200 -window 5 -negative 5 -hs 0 -sample 1e-3 -threads 12 -binary 1
./word-analogy vectors.bin