yanyiwu / cppjieba

"结巴"中文分词的C++版本
MIT License
2.6k stars 691 forks source link

删除字典的代码怎么整 #92

Closed hxsnow10 closed 1 month ago

hxsnow10 commented 7 years ago

输入vector string , 从分词器中删掉这些词

  1. 逻辑上只需要修改trie_是吗
  2. 能用trie_里的Find() 与 DeleteNode()来完成这个功能吗

有点看不懂代码... DictUnit,Dag与trie_保存的是什么含义的数据,以及他们的存储结构...?

hxsnow10 commented 7 years ago

算了 我取个巧 把weight变0即可。

github-actions[bot] commented 1 month ago

This issue has not been updated for over 5 years and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.

github-actions[bot] commented 1 month ago

This issue has been automatically closed due to inactivity. If the issue still exists, please reopen it.