We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the feature and the current behavior/state. 当前 java 版本使用静态变量储存字典路径, 其有个弊端是无法在一个 classloader 下同时开启多个使用不同路径的 hanlp 的 instance. 比如说我想开启两个实例, 一个用它来处理繁体, 一个用其处理简体. 这个在当前实现下很难实现, 因为两者的词典路径会冲突.
Will this change the current api? How? 不会更改api,属于内部实现更改
Who will benefit with this feature? 所有的 Java 版本用户
Are you willing to contribute it (Yes/No): Yes
System information
Any other info No
The text was updated successfully, but these errors were encountered:
欢迎pr,可参考CustomDictionary的多实例重构方法: #1339
Sorry, something went wrong.
hi,I'm interested in this feature. 这块刚好之前自己改造hanlp做过简易版的类似实现,准备后续抽空把多实例重构做了
hankcs
No branches or pull requests
Describe the feature and the current behavior/state.
当前 java 版本使用静态变量储存字典路径, 其有个弊端是无法在一个 classloader 下同时开启多个使用不同路径的 hanlp 的 instance.
比如说我想开启两个实例, 一个用它来处理繁体, 一个用其处理简体. 这个在当前实现下很难实现, 因为两者的词典路径会冲突.
Will this change the current api? How?
不会更改api,属于内部实现更改
Who will benefit with this feature?
所有的 Java 版本用户
Are you willing to contribute it (Yes/No):
Yes
System information
Any other info
No
The text was updated successfully, but these errors were encountered: