using vis.py ipython notebook version: https://gist.github.com/chezou/3899461aa550f73854a1 original vis.py https://github.com/nishio/mycorpus In [1]: import visword2vec # 単語で作ったモデル vis = visword2vec.visWord2Vec(“recipe_steps.bin”) # フレーズで作ったモデル vis_phrase = visword2vec.visWord2Vec(“recipe_steps-phrase.bin”) loading loaded loading loaded In [2]: def plot_both(word): vis.plot(word) vis_phrase.plot(word) In [3]: plot_both(‘チョコ’) [ 0.21099427 0.11427726] [ 0.19734898 0.13841781] In [4]: vis_phrase.plot(‘義理_チョコ’) [ 0.16700684 0.1221358 ] In [5]: plot_both(‘義理’) [ 0.17986007 0.14094272] [ 0.248188 0.16636363] In [6]: plot_both(‘あつあつ’)… Continue reading word2vec visualization