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

词典中所有韵母 #266

Closed
MianWang123 opened this issue Dec 18, 2021 · 6 comments
Closed

词典中所有韵母 #266

MianWang123 opened this issue Dec 18, 2021 · 6 comments

Comments

@MianWang123
Copy link

请问下怎样可以获取词库中所有存在的韵母?我想把所有可能出现的韵母提取出来,是否可行呢?

@mozillazg
Copy link
Owner

@MianWang123
Copy link
Author

MianWang123 commented Dec 23, 2021

我发现有些韵母都超出了《汉语拼音方案》的范围,比方说:呦-io,嗯-n,呣-m,是不是不太合理?

@JohnHerry
Copy link

哟 yo 嗯 ng

@mozillazg
Copy link
Owner

mozillazg commented Jan 2, 2022

我发现有些韵母都超出了《汉语拼音方案》的范围,比方说:呦-io,嗯-n,呣-m,是不是不太合理?

这个没有复现,最新版得到的韵母是 iou:

>>> pinyin('呦', style=Style.FINALS_TONE)
[['iōu']]

嗯-n,呣-m 这几个是有点模糊的特殊 case,暂时还没决定是否需要处理:#80

@MianWang123
Copy link
Author

我发现有些韵母都超出了《汉语拼音方案》的范围,比方说:呦-io,嗯-n,呣-m,是不是不太合理?

这个没有复现,最新版得到的韵母是 iou:

>>> pinyin('呦', style=Style.FINALS_TONE)
[['iōu']]

嗯-n,呣-m 这几个是有点模糊的特殊 case,暂时还没决定是否需要处理:#80

不好意思,打错字了,是 “哟” - yo,然后韵母是 “io”

@mozillazg
Copy link
Owner

不好意思,打错字了,是 “哟” - yo,然后韵母是 “io”

@MianWang123 嗯,这个看起来是个 bug,等我有空的时候优化一下韵母相关函数,确保在 strict=True 的情况下只返回《汉语拼音方案》中列出的韵母。

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

No branches or pull requests

3 participants