{"action":"created","issue":{"url":"https://api.github.com/repos/hankcs/HanLP/issues/24","labels_url":"https://api.github.com/repos/hankcs/HanLP/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/hankcs/HanLP/issues/24/comments","events_url":"https://api.github.com/repos/hankcs/HanLP/issues/24/events","html_url":"https://github.com/hankcs/HanLP/issues/24","id":85449149,"number":24,"title":"能否提供主词典动态删除方法？","user":{"login":"timlincool","id":5269547,"avatar_url":"https://avatars.githubusercontent.com/u/5269547?v=3","gravatar_id":"","url":"https://api.github.com/users/timlincool","html_url":"https://github.com/timlincool","followers_url":"https://api.github.com/users/timlincool/followers","following_url":"https://api.github.com/users/timlincool/following{/other_user}","gists_url":"https://api.github.com/users/timlincool/gists{/gist_id}","starred_url":"https://api.github.com/users/timlincool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timlincool/subscriptions","organizations_url":"https://api.github.com/users/timlincool/orgs","repos_url":"https://api.github.com/users/timlincool/repos","events_url":"https://api.github.com/users/timlincool/events{/privacy}","received_events_url":"https://api.github.com/users/timlincool/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T06:24:14Z","updated_at":"2015-06-08T10:29:01Z","closed_at":"2015-06-08T10:29:01Z","body":"看了下原码，发现BinTrie有提供remove方法，所以自定义词典可以动态删除。\r\n不过DoubleArrayTrie好像并没有提供删除方法，请问是为什么？是否是因为数据结构的问题？\r\n\r\n建议能提供主词典动态删除方法，因为若是把hanLP拿来做生产环境solr的分词，服务不能停，\r\n如果要修改词库的话，建议能有动态删除所有词库的方法。\r\n\r\n谢谢！"},"comment":{"url":"https://api.github.com/repos/hankcs/HanLP/issues/comments/109944331","html_url":"https://github.com/hankcs/HanLP/issues/24#issuecomment-109944331","issue_url":"https://api.github.com/repos/hankcs/HanLP/issues/24","id":109944331,"user":{"login":"hankcs","id":5326890,"avatar_url":"https://avatars.githubusercontent.com/u/5326890?v=3","gravatar_id":"","url":"https://api.github.com/users/hankcs","html_url":"https://github.com/hankcs","followers_url":"https://api.github.com/users/hankcs/followers","following_url":"https://api.github.com/users/hankcs/following{/other_user}","gists_url":"https://api.github.com/users/hankcs/gists{/gist_id}","starred_url":"https://api.github.com/users/hankcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hankcs/subscriptions","organizations_url":"https://api.github.com/users/hankcs/orgs","repos_url":"https://api.github.com/users/hankcs/repos","events_url":"https://api.github.com/users/hankcs/events{/privacy}","received_events_url":"https://api.github.com/users/hankcs/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T10:29:01Z","updated_at":"2015-06-08T10:29:01Z","body":"你好，抱歉没有及时回复。\r\n\r\nDAT比较特殊，动态增删非常复杂。如果你很需要删除操作的话，可以给每个key新增一个状态变量，删除则置为false，粗分的时候忽略状态为false的词语。"}}