-
Notifications
You must be signed in to change notification settings - Fork 355
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
請問可以動態載入詞庫嗎? #28
Comments
協程檢測文件是否修改,再重載一次就可以了 |
看了结巴分词的代码,有free的方法去释放内存貌似,这里需要释放内存嘛. |
https://github.com/jianzhiyao/go-segment |
你只是启动http服务的时候加载了一次,如果要更新词库的话,肯定要先实例话一个segment再引用赋值,直接load的话dictionary会重新加载,有一段时间切词不可用。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前看到的方法只有LoadDictionary 這個方法動態調用好像會蓋掉前面的,
有建議可以動態新增詞庫嗎?
The text was updated successfully, but these errors were encountered: