jieba
jieba copied to clipboard
ValueError: math domain error
运行test目录下的demo.py时出现了
1. 分词
Building prefix dict from /usr/local/lib/python2.7/dist-packages/jieba/dict.txt ...
Loading model from cache /tmp/jieba.cache
Loading model cost 0.000440835952759 seconds.
Prefix dict has been built succesfully.
Full Mode: 我/ 来/ 到/ 北/ 京/ 清/ 华/ 大/ 学
Traceback (most recent call last):
File "demo.py", line 22, in
词典好像没成功加载,删掉 /tmp/jieba.cache,下载最新版试试。 最新版 Python 2/3 均兼容
用 最新版的jieba0.42.1 pyinstaller 打包报错 缺少 dict.txt 解决后
再次打包 报 这个 ValueError: math domain error