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

Hi,关于轻声问题 #316

Open
shanhaidexiamo opened this issue Jan 8, 2024 · 1 comment
Open

Hi,关于轻声问题 #316

shanhaidexiamo opened this issue Jan 8, 2024 · 1 comment
Labels

Comments

@shanhaidexiamo
Copy link

pypinyin对于轻声适配问题。参照《普通话水平测试用必读轻声词语表》比如爸爸,ba4 ba4,如果想让其变成ba4 ba,这方面请教一下该怎么修改呢?

感谢大佬

@mozillazg
Copy link
Owner

mozillazg commented Jan 8, 2024

可以使用下面这个文档里介绍的 load_phrases_dict 函数进行调整: https://github.com/mozillazg/python-pinyin#id5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants