Python 使用保存的Word2Vec模型时发出警告 运行此代码时会出现此警告

Python 使用保存的Word2Vec模型时发出警告 运行此代码时会出现此警告,python,machine-learning,deep-learning,anaconda,natural-language-processing,Python,Machine Learning,Deep Learning,Anaconda,Natural Language Processing,错误: "/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

错误:

"/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
中被弃用,并且作者希望用户清楚这一点

您可以使用以下方法禁用这些警告:

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)

这只是一个警告,不是错误。我知道这是警告,我提到了这一点,我只是想知道为什么会出现这个警告
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)