Skip to content

能否将自定义词典bin更新加载改为可配置 #1655

@KennFalcon

Description

@KennFalcon

Describe the feature and the current behavior/state.
因为在开发elasticsearch相关hanlp插件时,elasticsearch在7.11.0之后限制了插件的权限,只有读取文件权限,但HanLP在1.8.0之后增加了词典热更新,在读取custom dictionary时,会判断bin文件是否是最新,从而开启热加载(删除并重新构建),但elasticsearch插件安装时,词典文件的最后更新时间不定,从而导致热加载,因权限问题热加载失败

Will this change the current api? How?
能否将词典热加载改为可配置,增加开关

Who will benefit with this feature?
elasticsearch关于hanlp的分词插件

Are you willing to contribute it (Yes/No):
Yes

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • Python version:
  • HanLP version: >= 1.8.0

Any other info

  • I've carefully completed this form.

Metadata

Metadata

Assignees

Labels

feature requestSuggest an idea for this project

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions