問題
每一次我用jieba進行分詞的時候,都會有
Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
Loading model cost 0.128 seconds.
Prefix dict has been built succesfully.
這樣的提示。怎么去除這些提示呢?
解決方案
import logging
jieba.setLogLevel(logging.INFO)
或
jieba.setLogLevel(20)
