Skip to content

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

Description

@sappmis

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions