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

您好 如何自定义分词的词汇? #146

Open
YahuiWong opened this issue Apr 10, 2024 · 4 comments
Open

您好 如何自定义分词的词汇? #146

YahuiWong opened this issue Apr 10, 2024 · 4 comments

Comments

@YahuiWong
Copy link

提问之前先看一下:#87
我试着在jieba的文件夹下定义词汇,但是没有生效,自定义分词如何使用?

@wangfenjin
Copy link
Owner

user.dict.utf8 那个文件

@wangfenjin
Copy link
Owner

https://github.com/yanyiwu/cppjieba?tab=readme-ov-file#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%94%A8%E6%88%B7%E8%AF%8D%E5%85%B8

用的是这个库,按照他里面写的方法就会生效

@YahuiWong
Copy link
Author

dict/user.dict.utf8 文件里面 的
文字 数字 nz 分别代表什么?

@wangfenjin
Copy link
Owner

读 cppjieba 那个库的说明吧

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

2 participants