【发布时间】:2019-07-05 18:06:11
【问题描述】:
如何使用 Gensim predict 输出单词功能?
model = KeyedVectors.load_word2vec_format('./GoogleNews-vectors-negative300.bin', binary=True)
model.predict_output_word(['Hi', 'how', 'you'], topn=10)
AttributeError: 'Word2VecKeyedVectors' object has no attribute 'predict_output_word'
我尝试了 Word2Vec.load_word2vec_format('./GoogleNews-vectors-negative300.bin', binary=True),它也被弃用了。
【问题讨论】:
标签: gensim