2017-05-14 8 views

답변

0

여기에 파이썬과 Gensim을 사용하는 한 가지 방법이 있습니다.

from gensim.models import word2vec 

# Change this to your own path. 
pathToBinVectors = '/data/GoogleNews-vectors-negative300.bin' 

model1 = word2vec.Word2Vec.load_word2vec_format(pathToBinVectors, binary=True) 

print model1['resume'] -> This will print a vector of the word "resume". 

출처 : https://bitbucket.org/yunazzang/aiwiththebest_byor