import gensim
from gensim.models.word2vec import Word2Vec
model = Word2Vec()
new_model = gensim.models.Word2Vec.load('D:\\BaiduNetdiskDownload\\10G训练好的词向量\\60维\\Word60.model')
print(new_model['刘备'])
结果如下:
[ 3.5057108 0.23193994 0.19731355 0.61829925 1.3409204 -1.1181362
5.9609795 -2.0857 -5.2395935 1.2423737 -1.4346985 2.1227133
-2.1307392 3.3119721 1.9789536 4.750488 1.3931341 0.2243208
-1.7789596 1.9664023 1.4925325 -3.1136608 -1.6841599 -4.3660345
-1.8478464 -0.10593596 0.11859094 -1.3904014 1.9982277 3.1126242
-2.0224502 -0.79035425 0.9407421 -1.3262608 3.3907146 -0.38345346
0.9962657 -4.8566236 -3.9872255 0.98422533 3.85122 0.37346333
4.0615597 -2.2208614 0.8785672 0.5509546 -0.14207058 3.674683
-0.80421793 -3.0551243 0.45870626 -0.47622567 0.21859106 -2.346749
4.6617136 1.7143931 1.33913 -2.694192 1.4306562 1.3023509 ]
训练好的词向量下载链接为:链接:https://pan.baidu.com/s/1az2v2zeDjBsGuYRA9Ubi0Q
提取码:etjg
网友评论