question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parse chinese character to jyutping

See original GitHub issue

I’ve gone through the documentation but did not find how to convert Chinese sentence to jyutping. For example something like this.

import pycantonese as pc

pc.parse_to_jyutping("我係香港人")
'ngo5 hai6 hoeng1 gong2 jan4'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jacksonlleecommented, Oct 11, 2020

Hello everyone, I finally got around to finish some related work and just made a new release of pycantonese v2.4.1 to PyPI (pip install -U pycantonese should install the latest release). The new characters2jyutping() function does what this ticket asks for:

>>> import pycantonese as pc
>>> pc.characters2jyutping('我係香港人')
['ngo5', 'hai6', 'hoeng1', 'gong2', 'jan4']

Docs: http://pycantonese.org/jyutping.html#characters-to-jyutping-conversion

(Relatedly, this new pycantonese release also includes word segmentation, which the characters-to-jyutping conversion functionality depends on: http://pycantonese.org/word_segmentation.html)

I’m closing this ticket as resolved. Please feel free to let me know if there are other questions. Thanks!

1reaction
laubonghaudoicommented, Oct 9, 2020

@mirfan899 We have a Jyutping conversion tool here, please try it out: https://github.com/CanCLID/ToJyutping

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cantonese to Jyutping converter
This app is designed to help you convert Cantonese text into jyutping, which is the romanized phonetic writing system for Cantonese. To use...
Read more >
Jyutping Romanization — PyCantonese 3.4.0 documentation
Any unseen character, Cantonese or otherwise, is represented by None in the output. To further process the Jyutping strings, please see Parsing ...
Read more >
Chinese character → Cantonese Pinyin Converter
Convert the Chinese character to a Cantonese Pinyin specified by the user. Support for Traditional and Simplified Chinese input.Input other than Chinese ...
Read more >
Translating from Pinyin to Jyutping - cantonese.sheik.co.uk
To get a Jyutping reading, we need to know the Chinese characters. I would like to translate all those names into Jyutping so...
Read more >
Converting Chinese Characters to Pinyin/Jyutping on Google ...
this will convert any chinese text present in column A. It will keep on converting as you add new rows in column A....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found