最新消息:本站所有跳转向bbs.ykit.cn的附件将全面停止,附件已转移到https://www.qingsj.com

Python运行jieba出现Building prefix dict from the default dictionary …解决办法(会显示正确结果)

Python 有客 2316浏览

Python运行jieba出现
Building prefix dict from the default dictionary …解决办法

这是我运行了代码出现的错误,但是我的结果还是可以正常显示的

Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\95114\AppData\Local\Temp\jieba.cache
Loading model cost 0.842 seconds.
Prefix dict has been built successfully.

只要在引入jieba模块后加入下列代码,代码即可不报错

jieba.setLogLevel(jieba.logging.INFO)

转载请注明:有客帮 » Python运行jieba出现Building prefix dict from the default dictionary …解决办法(会显示正确结果)