很感谢 https://www.cnpython.com/qa/49234.终于解决问题了。记录一下。
在网上找了一些大的词向量模型,load的时候一直报错:
# 最初使用的load方式
from gensim.models import Word2Vec
model = Word2Vec.load('./model/baike_26g_news_13g_novel_229g.model')
load .model后缀时报一下错:
AttributeError: 'EuclideanKeyedVectors' object has no attribute 'negative'