Coder Social home page Coder Social logo

Accuracy of pinyin about pinyin HOT 3 OPEN

pzhaonet avatar pzhaonet commented on June 10, 2024
Accuracy of pinyin

from pinyin.

Comments (3)

pzhaonet avatar pzhaonet commented on June 10, 2024

Thanks for your feedback. It is not due to your Windows locale. It is due to the default dictionary. Please use this:

library(pinyin)
mypy <- pydic(dic = 'pinyin2')
py("广西", sep = "", dic = mypy)
py("春眠不觉晓,处处闻啼鸟", dic = mypy)

from pinyin.

gexijin avatar gexijin commented on June 10, 2024

from pinyin.

cskemp avatar cskemp commented on June 10, 2024

I've also found issues with the default dictionary: e.g.

library(pinyin)
mypy <- pydic()
py("个", dic = mypy)


"ɡàn"

py("有", dic=mypy)


"wěi"

I tried using the pinyin2 directory but couldn't get it to support quanpin -- is this possible? Here's what I tried:

library(pinyin)
mypy <- pydic(method = 'quanpin', dic = 'pinyin2')
py("西", dic = mypy)

西
"xi1"

from pinyin.

Related Issues (15)

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.