Skip to content
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

热更新词,是把词新增加载到内存里面,还是说覆盖? #200

Open
guohuilive opened this issue May 26, 2016 · 3 comments
Open

Comments

@guohuilive
Copy link

热更新词,是把词新增 加载到内存里面,还是说覆盖?

另外,对后续版本的建议:能否直接将热更新词去掉,直接采用自定义词库 (key="ext_*“),加个守护线程,根据开发者配置的时间轮询更新。

@medcl
Copy link
Member

medcl commented May 31, 2016

热更新使用起来相对来说要考虑的东西比较多,因为是分布式环境,必须保证每个节点上的词库都同步,否则会有不一致的问题,热更新尽量避免使用。

@Klauszhao
Copy link

我想问下,为啥热更词实现不了啊,我把一个txt的词库放进一个可以通过url来访问的服务器文件夹中,在分析的时候,一个词组还是被分了,比如“疯狂动物城” 这个词被分成三个了:疯狂、动物、城。已查看文件格式了,是utf8格式,文件路径大概是:http://5x.xx..233.195/z_IK/remote_ext_dict.txt,求教了。

@doubleflying
Copy link

@Klauszhao 这个问题解决了么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants