-
Notifications
You must be signed in to change notification settings - Fork 1.9k
add filter for double punctuation in sentences; add homonym, test=tts #2235
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
Conversation
please sign for CLA first, thanks |
@@ -94,10 +94,12 @@ def __init__pypinyin(self): | |||
large_pinyin.load() | |||
|
|||
load_phrases_dict({u'开户行': [[u'ka1i'], [u'hu4'], [u'hang2']]}) | |||
load_phrases_dict({u'俩个':[[u'lia3ng'],[u'ge4']]}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这两个多音字似乎发音没什么问题,具体 badcase 的输入文本是什么?按照汉语拼音标准,"俩" == "两个","俩个" 这种用法本身就是错的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this line
load_phrases_dict({u'发卡行': [[u'fa4'], [u'ka3'], [u'hang2']]}) | ||
load_phrases_dict({u'放款行': [[u'fa4ng'], [u'kua3n'], [u'hang2']]}) | ||
load_phrases_dict({u'茧行': [[u'jia3n'], [u'hang2']]}) | ||
load_phrases_dict({u'行号': [[u'hang2'], [u'ha4o']]}) | ||
load_phrases_dict({u'行政': [[u'xing2'], [u'zhen4g']]}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'zhen4g' 的标注是否正确?
>>> from pypinyin import pinyin, lazy_pinyin, Style
>>> pinyin('行政', style=Style.TONE2, heteronym=True)
[['xi2ng'], ['zhe4ng']]
>>> pinyin('行政', style=Style.TONE3, heteronym=True)
[['xing2'], ['zheng4']]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fix #2232