Skip to content

Commit d9ebc75

Browse files
author
tmikolov
committed
aa
1 parent 1bd5d7b commit d9ebc75

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

demo-analogy.sh

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

0 commit comments

Comments
 (0)