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."
答案 0 :(得分:0)
出现此警告是因为指定的功能将在id amount txn_id status status_text max_status
8 25 321321 1 complete 1
7 20 321456 0 pending 1
5 17 987456 0 pending 0
3 15 123456 0 complete 1
2 11 123123 0 pending 0
的未来版本中弃用,并且作者希望这一点对用户清楚。
您可以使用以下命令禁用这些警告:
gensim