jieba
jieba copied to clipboard
/tmp/jieba.cache 写文件冲突
jieba貌似会写入/tmp/jieba.cache
Loading model from cache /tmp/jieba.cache
Dumping model to file cache /tmp/jieba.cache
但是一个server上有多个用户时,就会有写文件冲突。
change dir as you want:
import jieba
jieba.dt.tmp_dir = expanduser("~/.cache/jieba")