UserWarning: The gensim.similarities.levenshtein submodule is disabled, because the optional Levenshtein package < https://pypi.org/project/python-Levenshtein /> is unavailable. Install Levenhstein (e.g. pip install python-Levenshtein`) to suppress this warning.warnings.warn(msg)警告解决方案
将下面代码复制粘贴到import gensim之前,注意一定要在之前否则导入import gensim就会出现警告。
import warnings warnings.filterwarnings('ignore') # 警告扰人,手动封存