model.save('raw_gutenberg_model.w2v')
model = gensim.models.Word2Vec.load('raw_gutenberg_model.w2v')
model['dog']
错误:
"/home/computer_name/anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py:1: DeprecationWarning: Call to deprecated `doesnt_match` (Method will be removed in 4.0.0, use self.wv.doesnt_match() instead).
"""Entry point for launching an IPython kernel."
出现此警告是因为指定的函数将在
gensim
的未来版本中被弃用,作者希望用户能够清楚地看到这一点。你知道吗可以使用以下方法禁用这些警告:
相关问题 更多 >
编程相关推荐