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

在net core上使用,多个词典加载后累加的问题。 #97

Open
sappmis opened this issue Aug 31, 2024 · 0 comments
Open

在net core上使用,多个词典加载后累加的问题。 #97

sappmis opened this issue Aug 31, 2024 · 0 comments

Comments

@sappmis
Copy link

sappmis commented Aug 31, 2024

我现在使用环境是net core 3.1,目前使用的方法是,根据不同的需求使用多个词典。不同词典里面的词库数量是不同的,比如我第一次加载LoadUserDict词典(dict_1.txt)使用的词库有100个条目,使用没有问题。
在程序的生存周期内,我第二次new JiebaSegmenter,重新加载第二个只有50条目的词库(dict_2.txt),但是此时JiebaSegmenter中的条目会包含有第一次加载的dict_1.txt的所有分词条目。
这个问题有没有什么好方法解决?

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

1 participant