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

无法正确识别姓名的姓的多音字 #297

Open
faying opened this issue Jan 31, 2023 · 1 comment
Open

无法正确识别姓名的姓的多音字 #297

faying opened this issue Jan 31, 2023 · 1 comment

Comments

@faying
Copy link

faying commented Jan 31, 2023

运行环境

  • 操作系统(Linux/macOS/Windows):
  • Python 版本:3.10
  • pypinyin 版本:latest

问题描述

对于姓名专属的特殊情况,姓只会有少数唯一读音的转换,是否增加一个姓名转换函数对姓专门处理
清单如下(参考https://github.com/overtrue/pinyin),
万俟,mò qí
尉迟,yù chí
单于,chán yú
重,chóng
秘,bì
冼,xiǎn
华,huà
过,guō
纪,jǐ
燕,yān
种,chóng
繁,pó
幺,yāo
覃,qín
冯,féng
石,shí
缪,miào
瞿,qú
曾,zēng
解,xiè
折,shè
那,nā
佴,nài
难,nàn
粘,niàn
藏,zàng
扎,zā
翟,zhái
都,dū
六,lù
薄,bó
贾,jiǎ
的,dē
哈,hǎ
居,jū
盖,gě
查,zhā
盛,shèng
塔,tǎ
和,hé
柏,bǎi
朴,piáo
蓝,lán
牟,móu
殷,yīn
陆,lù
乜,niè
乐,yuè
阚,kàn
叶,yè
强,qiáng
不,fǒu
丁,dīng
阿,ā
汤,tāng
万,wàn
车,chē
称,chēng
沈,shěn
区,ōu
仇,qiú
宿,sù
南,nán
单,shàn
卜,bǔ
鸟,niǎo
思,sī
殳,shū
寻,xún
於,yú
烟,yān
余,yú
浅,qiǎn
艾,ài
浣,wǎn
无,wú
信,xìn
许,xǔ
齐,qí
俞,yú
若,ruò
贠,yùn
貟,yùn

问题复现步骤

pypinyin.pinyin('茜查', heteronym=True)
[['qiàn', 'xī'], ['chá', 'zhā', 'chái']]

@mozillazg
Copy link
Owner

是的,当前确实有这个问题,详见 #120

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