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

许多多音字错误 #56

Closed
XC-Zero opened this issue Sep 17, 2021 · 2 comments
Closed

许多多音字错误 #56

XC-Zero opened this issue Sep 17, 2021 · 2 comments

Comments

@XC-Zero
Copy link

XC-Zero commented Sep 17, 2021

setting := pinyin.NewArgs()

setting.Heteronym = true

setting.Style=pinyin.Tone2

fmt.Println(pinyin.Pinyin("广州深圳",setting))


返回值为

[[gua3ng ya3n a1n] [zho1u] [she1n] [zhe4n qua3n cho2u hua2i]]

很显然 ,多音字是不正确的

@zhaodawei
Copy link

zhaodawei commented Dec 11, 2021

下载最新的txt字典重新生成一份

@mozillazg
Copy link
Owner

下载最新的txt字典重新生成一份

嗯,可以参考 #57 这里的方法使用想用的拼音数据。

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

3 participants