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

很不错,不过多音字,和词库希望可以完善 #1

Open
tomato-cc opened this issue Sep 29, 2019 · 2 comments
Open

很不错,不过多音字,和词库希望可以完善 #1

tomato-cc opened this issue Sep 29, 2019 · 2 comments

Comments

@tomato-cc
Copy link

我们是金融系列项目,会经常遇到多音字的问题,包括词语,姓,名等很多场景,不知道该开源组件是否支持扩展,如果扩展。

@rnkrsoft
Copy link
Owner

关于词语,姓、名等场景能提供一些例子吗?拓展方式上还在考虑如何设计。如果方便的话,您可以发送邮件到devops@rnkrsoft.com

@tomato-cc
Copy link
Author

姓名场景:
乐乐,第一个为姓氏 乐(yuè ) 第二个为名乐( lè)这种情况有很多,目前我们的方案是做姓氏库和名的库,根据姓名的汉字长度进行拆解,拆解后进行转换
词库场景:
我找了个多音字的词,来进行转换,结果 膀 字的解析结果均是 “Bang”。相同例子还有很多
System.out.println("test --->" + Bopomofo4j.pinyin("膀大腰圆", ToneType.WITHOUT_TONE,false,true,""));
System.out.println("test1 --->" + Bopomofo4j.pinyin("膀胱", ToneType.WITHOUT_TONE,false,true,""));

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