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

【Hackathon 8th No.7】Python版本适配 5 #3972

Merged
merged 8 commits into from
Jan 23, 2025

Conversation

Liyulingyue
Copy link
Contributor

@Liyulingyue Liyulingyue commented Jan 16, 2025

PR types

Others

PR changes

Others

Describe

根据 mozillazg/python-pinyin#284 (comment) ,pypinyin不依赖0.44时,会引入 嗯 韵母空值的情况。
后续将在所有lazy_pinyin的地方临时增加判断以规避此情况,并移除对pypinyin的版本限制。

@mergify mergify bot added the Installation label Jan 16, 2025
setup.py Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
Copy link

mergify bot commented Jan 21, 2025

This pull request is now in conflict :(

@mergify mergify bot added the conflicts label Jan 21, 2025
@mergify mergify bot removed the conflicts label Jan 21, 2025
word, neutral_tone_with_five=True, style=Style.FINALS_TONE3)
for (word, pos) in seg
]
# after pypinyin==0.41.0, 嗯 will be processed as "", so we need to change it to "n2"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • '嗯'
  • after 0.44.0
  • '嗯' need to be n2, cause the initial and final consonants cannot be empty at the same time

@Liyulingyue Liyulingyue requested a review from zxcd January 22, 2025 12:09
Copy link
Collaborator

@zxcd zxcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zxcd zxcd merged commit cb0ba54 into PaddlePaddle:develop Jan 23, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants