UserWarning: The gensim.similarities.levenshtein submodule is disabled, because the optional Levensh

简介: UserWarning: The gensim.similarities.levenshtein submodule is disabled, because the optional Levensh

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')  # 警告扰人,手动封存

完美解决!


相关文章
|
算法框架/工具
成功解决INFO: pip is looking at multiple versions of keras-preprocessing to determine which version is c
成功解决INFO: pip is looking at multiple versions of keras-preprocessing to determine which version is c
|
机器学习/深度学习 算法 Oracle
Paper:《“Why Should I Trust You?“: Explaining the Predictions of Any Classifier》翻译与解读
Paper:《“Why Should I Trust You?“: Explaining the Predictions of Any Classifier》翻译与解读
AttributeError: partially initialized module ‘jieba‘ has no attribute ‘cut‘ (most likely due to a ci
AttributeError: partially initialized module ‘jieba‘ has no attribute ‘cut‘ (most likely due to a ci
462 0
AttributeError: partially initialized module ‘jieba‘ has no attribute ‘cut‘ (most likely due to a ci
|
TensorFlow 算法框架/工具
成功解决AttributeError: module tensorflow.sets has no attribute intersection
成功解决AttributeError: module tensorflow.sets has no attribute intersection
成功解决AttributeError: module tensorflow.sets has no attribute intersection
|
TensorFlow 算法框架/工具
成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘get_variable‘
成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘get_variable‘
|
TensorFlow 算法框架/工具
成功解决AttributeError: module tensorflow has no attribute lite
成功解决AttributeError: module tensorflow has no attribute lite
|
TensorFlow 算法框架/工具
TF版本升级问题:成功解决AttributeError: module tensorflow has no attribute mul
TF版本升级问题:成功解决AttributeError: module tensorflow has no attribute mul
TF版本升级问题:成功解决AttributeError: module tensorflow has no attribute mul
|
算法框架/工具 Python
成功解决 keras\callbacks.py:999: UserWarning: `epsilon` argument is deprecated and will be removed, use
成功解决 keras\callbacks.py:999: UserWarning: `epsilon` argument is deprecated and will be removed, use
|
TensorFlow 算法框架/工具
成功解决AttributeError: module 'tensorflow' has no attribute 'scalar_summary'
成功解决AttributeError: module 'tensorflow' has no attribute 'scalar_summary'