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

关于自定义词典 #97

Open
ffxmm opened this issue Nov 14, 2017 · 2 comments
Open

关于自定义词典 #97

ffxmm opened this issue Nov 14, 2017 · 2 comments

Comments

@ffxmm
Copy link

ffxmm commented Nov 14, 2017

你好,想请教一下,想添加自定义词典的话需要在哪一步运行?导出训练好的模型之前还是之后

@seed9D
Copy link

seed9D commented Nov 27, 2017

使用自定義辭典的時機是在整個模型訓練完後
事後更正模型分詞結果, 所以會是在導出訓練好的模型之後
具體做法參考 kcws/cc/test_seg.cc, 得在把words_tag matrix送進viterbi 解碼前調整weight

@Silencezjl
Copy link

直接传个参数就好了呀~ kcws/cc/test_seg的--user_dict_path这个参数

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

3 participants