Coder Social home page Coder Social logo

the project can not beat pypinyin! about g2pm HOT 3 OPEN

kakaobrain avatar kakaobrain commented on September 27, 2024
the project can not beat pypinyin!

from g2pm.

Comments (3)

seanie12 avatar seanie12 commented on September 27, 2024

please describe your experimental setup.

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

from g2pm.

JohnHerry avatar JohnHerry commented on September 27, 2024

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.

from g2pm.

dyustc avatar dyustc commented on September 27, 2024

`

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', '。']`

from g2pm.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.