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

如何训练和更新hmm_model.utf8 #122

Open
chenrulongmaster opened this issue Oct 17, 2018 · 3 comments
Open

如何训练和更新hmm_model.utf8 #122

chenrulongmaster opened this issue Oct 17, 2018 · 3 comments
Labels

Comments

@chenrulongmaster
Copy link

如何训练和更新hmm_model.utf8?

@PierreZhangcw
Copy link

@chenrulongmaster
这里没有训练和更新hmm_model的代码。可以在网上找到,比如https://www.cnblogs.com/chen8023miss/p/11977224.html。我自己有进行过尝试,尝试成功。

注意事项:

  • 首先是对参数的保存,需要先观察cppjieba中hmm_model.utf8的格式,然后自己写一个参数保存的方法。
  • cppjieba的hmm模型中,不包含对标点符号的标签标注以及预测,所以要注意在发射矩阵中不要包含状态对标点符号字符的相关发射概率。否则cppjieba载入hmm_model.utf8时会报错。

@chenrulongmaster
Copy link
Author

@chenrulongmaster
这里没有训练和更新hmm_model的代码。可以在网上找到,比如https://www.cnblogs.com/chen8023miss/p/11977224.html。我自己有进行过尝试,尝试成功。

注意事项:

  • 首先是对参数的保存,需要先观察cppjieba中hmm_model.utf8的格式,然后自己写一个参数保存的方法。
  • cppjieba的hmm模型中,不包含对标点符号的标签标注以及预测,所以要注意在发射矩阵中不要包含状态对标点符号字符的相关发射概率。否则cppjieba载入hmm_model.utf8时会报错。

老铁,你这个有点6了

Copy link

This issue has not been updated for over 1 year 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 github-actions bot added the Stale label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants