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》翻译与解读
|
9月前
ORB_SLAM2_CUDA : Make failed - Compiling examples - Undefined References
ORB_SLAM2_CUDA : Make failed - Compiling examples - Undefined References
70 0
|
9月前
|
自然语言处理 搜索推荐 数据挖掘
RolePred: Open-Vocabulary Argument Role Prediction for Event Extraction 论文解读
事件抽取中的论元角色是指事件和参与事件的论元之间的关系。尽管事件抽取取得了巨大进展,但现有研究仍然依赖于领域专家预定义的角色。
50 0
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
447 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‘
|
算法框架/工具 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'