Skip to content

Instantly share code, notes, and snippets.

@stuntgoat
Last active August 29, 2015 13:56
Show Gist options
  • Save stuntgoat/9341077 to your computer and use it in GitHub Desktop.
Save stuntgoat/9341077 to your computer and use it in GitHub Desktop.
~/py/tluster $ word-analogy vectors.bin
Enter three words (EXIT to break): man king woman
Word: man Position in vocabulary: 137
Word: king Position in vocabulary: 900
Word: woman Position in vocabulary: 635
Word Distance
------------------------------------------------------------------------
queen 0.462192
latifah 0.459967
royalty 0.352305
luther 0.351468
dairy 0.345914
elizabeth 0.340882
#byupdate 0.334549
jewelz 0.324531
'with 0.309373
vandross 0.305451
incomparable 0.304747
(output omitted)
Enter three words (EXIT to break): cat kitten dog
Word: cat Position in vocabulary: 890
Word: kitten Position in vocabulary: 6190
Word: dog Position in vocabulary: 660
Word Distance
------------------------------------------------------------------------
puppy 0.437821
onesie 0.407289
husky 0.407037
dessy 0.403935
unicorn 0.402873
herrrrr 0.394953
youngjae 0.392182
pouting 0.391420
fluffy 0.390786
soaker 0.389011
samoas 0.387908
nips 0.385850
turtle 0.379824
hair] 0.379698
(output omitted)
Enter three words (EXIT to break): woman wife man
Word: woman Position in vocabulary: 635
Word: wife Position in vocabulary: 1083
Word: man Position in vocabulary: 137
Word Distance
------------------------------------------------------------------------
husband 0.366313
son 0.352648
father 0.344214
girlfriend 0.340964
timmy 0.332657
bf's 0.329728
gf 0.326980
homeboy 0.326394
kal-el 0.319594
dad 0.319288
cuzin 0.318236
righthand 0.316847
bopper 0.316462
tcap 0.316061
(output omitted)
Enter three words (EXIT to break): knowledge think wisdom
Word: knowledge Position in vocabulary: 3086
Word: think Position in vocabulary: 83
Word: wisdom Position in vocabulary: 3206
Word Distance
------------------------------------------------------------------------
know 0.314423
assume 0.291467
say 0.290810
sayyy 0.278727
'if 0.259751
thinks 0.258747
worry 0.255608
never 0.254895
bluntly 0.253182
brag 0.249634
said 0.246087
dooooo 0.245095
care 0.236356
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment