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

the project can not beat pypinyin! #9

Open
shawnthu opened this issue Oct 22, 2020 · 3 comments
Open

the project can not beat pypinyin! #9

shawnthu opened this issue Oct 22, 2020 · 3 comments

Comments

@shawnthu
Copy link

No description provided.

@seanie12
Copy link
Contributor

please describe your experimental setup.

In our experimental setup, our model performs better than the other baselines.

@JohnHerry
Copy link

The pretrained g2pM model is even worse then pypinyin. The count of poly char is too much while the training corpus is too small. But even we had extend the corpus, the result is not so good.

@dyustc
Copy link

dyustc commented Apr 6, 2023

`

p1 = lazy_pinyin(sentence, style=Style.TONE3, neutral_tone_with_five=True)
print('pypinyin lazy')
print(p1)

model = G2pM()
p2 = model(sentence, tone=True, char_split=False)
print('g2m')
print(p2)`

Here is what I found where it may perform worth than pypinyin...
`
然而,他红了20年以后,他在长沙长大,也在长沙退休。

pypinyin lazy

['ran2', 'er2', ',', 'ta1', 'hong2', 'le5', '20', 'nian2', 'yi3', 'hou4', ',', 'ta1', 'zai4', 'chang2', 'sha1', 'zhang3', 'da4', ',', 'ye3', 'zai4', 'chang2', 'sha1', 'tui4', 'xiu1', '。']

g2m

['ran2', 'er2', ',', 'ta1', 'hong2', 'le5', '20', 'nian2', 'yi3', 'hou4', ',', 'ta1', 'zai4', 'chang2', 'sha1', 'chang2', 'da4', ',', 'ye3', 'zai4', 'chang2', 'sha1', 'tui4', 'xiu1', '。']`

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

4 participants