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

是否支持拼音分词 #21

Closed
msn217 opened this issue Aug 22, 2016 · 2 comments
Closed

是否支持拼音分词 #21

msn217 opened this issue Aug 22, 2016 · 2 comments

Comments

@msn217
Copy link

msn217 commented Aug 22, 2016

你好,请问该包是否支持拼音分词,如 wo shi zhong guo ren 是否可分词为 wo/shi/zhongguo/ren,如何做才能支持该功能,谢谢!

@huichen
Copy link
Owner

huichen commented Aug 22, 2016

目前不支持此功能,也许你可以把词典用 https://github.com/huichen/pinyin 转化为拼音词典,然后修改 https://github.com/huichen/sego/blob/master/segmenter.go#L249 使得文本可以正确切分为单个的拼音字。

@msn217
Copy link
Author

msn217 commented Aug 23, 2016

了解了,谢谢

@huichen huichen closed this as completed Aug 24, 2016
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