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)
时间: 2023-05-01 10:05:14 浏览: 558
python c api如题如题如题
这是Gensim模块给出的警告信息,意思是说如果不安装`python-levenshtein`包,就无法使用Gensim的`similarities.levenshtein`子模块。要解决这个警告,需要使用`pip install python-levenshtein`命令安装`python-levenshtein`包。
阅读全文