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

为啥‘大’都转化成‘tai’了? #3

Closed
origalin opened this issue Mar 26, 2017 · 5 comments
Closed

为啥‘大’都转化成‘tai’了? #3

origalin opened this issue Mar 26, 2017 · 5 comments

Comments

@origalin
Copy link

js:pinyin_dict_notone.js
这是使用时发现的,而且我将字典中的删掉后‘大’会默认转为‘dai’

@dingtwo
Copy link

dingtwo commented Nov 30, 2017

应该是多音字的问题

@xmflswood
Copy link

建议改写parseDict 以及 getpinyin方法
源码notone是不考虑多音字的

@boxsnake
Copy link

用的时候发现pinyin_dict_notone.js这里有几个字也是如此:
女 -> RU (虽然通“汝”,但是NV音更常用)
车 -> JU (虽然可以读JU,但是CHE更常用)
核 -> HU (虽然可以读HU,但是HE更常用)

@brahmachen
Copy link

还有
长 -> zhang 和 chang

@sxei
Copy link
Owner

sxei commented Apr 17, 2018

楼上说的对,由于pinyin_dict_notone这个数据字典采用的是 【拼音->汉字】的结构,在转换成【汉字->拼音】的时候没办法人为的将更常用的拼音放在前面,不过好在很多多音字更常见的读音排在前面,所以我已经修改了parseDict方法,已经找到了拼音的就不再覆盖,在一定程度上减少了楼上说的这些情况。不过还是推荐使用pinyin_dict_withtone这个字典,这个字典可以人为将更常用的拼音放在前面。

@sxei sxei closed this as completed Apr 17, 2018
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

6 participants