使用保存的Word2Vec模型时的警告

时间:2018-10-13 14:46:09

标签: python machine-learning deep-learning anaconda natural-language-processing

运行此代码时出现此警告

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."

1 个答案:

答案 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