New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jieba.load_userdict()的问题 #399
Comments
今天又遇到了问题,我在我的flask web app 中使用了jieba的加载自定义字典功能,然后用下面的命令启动
loading model from cache /tmp/jieba.cache |
gunicorn会fork多个进程,但是jieba是lazy加载词典的。你可以在import jieba后,调用一下jieba.initialize()。 这样就不会多次加载了。 |
同样也是jieba load_dict的问题,我发现我自己在词典中添加了一个词并设定了参数比如: |
@fxsjy import os 其中 cbi360.txt是我的自己的字典,而且我还用刀了jieba.posseg 的方法,请问这个具体的顺序是怎么样的啊? |
我按照规范建立了自己的字典,因为业务需要,我创建了两个字典,分别名字为a.txt ,b.txt 这两个文件分表包括了两个数据表格里面的数据,自己测试了一下不能如果采用以下的方法加载两个文件,好像不能同时生效
请问结巴能否同时加载两个用户字典呢??
The text was updated successfully, but these errors were encountered: