Giter Club home page Giter Club logo

Comments (5)

xmflswood avatar xmflswood commented on August 11, 2024 1

建议改写parseDict 以及 getpinyin方法
源码notone是不考虑多音字的

from pinyinjs.

dingtwo avatar dingtwo commented on August 11, 2024

应该是多音字的问题

from pinyinjs.

boxsnake avatar boxsnake commented on August 11, 2024

用的时候发现pinyin_dict_notone.js这里有几个字也是如此:
女 -> RU (虽然通“汝”,但是NV音更常用)
车 -> JU (虽然可以读JU,但是CHE更常用)
核 -> HU (虽然可以读HU,但是HE更常用)

from pinyinjs.

brahmachen avatar brahmachen commented on August 11, 2024

还有
长 -> zhang 和 chang

from pinyinjs.

sxei avatar sxei commented on August 11, 2024

楼上说的对,由于pinyin_dict_notone这个数据字典采用的是 【拼音->汉字】的结构,在转换成【汉字->拼音】的时候没办法人为的将更常用的拼音放在前面,不过好在很多多音字更常见的读音排在前面,所以我已经修改了parseDict方法,已经找到了拼音的就不再覆盖,在一定程度上减少了楼上说的这些情况。不过还是推荐使用pinyin_dict_withtone这个字典,这个字典可以人为将更常用的拼音放在前面。

from pinyinjs.

Related Issues (20)

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.