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
|
5月前
|
TensorFlow 算法框架/工具
【Tensorflow】解决A `Concatenate` layer should be called on a list of at least 2 inputs
在TensorFlow 2.0中,使用Concatenate函数时出现错误,可以通过替换为tf.concat 来解决。
50 4
|
5月前
|
TensorFlow API 算法框架/工具
【Tensorflow】解决Inputs to eager execution function cannot be Keras symbolic tensors, but found [<tf.Te
文章讨论了在使用Tensorflow 2.3时遇到的一个错误:"Inputs to eager execution function cannot be Keras symbolic tensors...",这个问题通常与Tensorflow的eager execution(急切执行)模式有关,提供了三种解决这个问题的方法。
56 1
|
PyTorch 算法框架/工具
Pytorch中Trying to backward through the graph和one of the variables needed for gradient错误解决方案
Pytorch中Trying to backward through the graph和one of the variables needed for gradient错误解决方案
2261 0
Pytorch中Trying to backward through the graph和one of the variables needed for gradient错误解决方案
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
561 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 'scalar_summary'
成功解决AttributeError: module 'tensorflow' has no attribute 'scalar_summary'
|
算法框架/工具 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 'merge_all_summaries'
成功解决AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'