粵語拼音自動標註工具 | Cantonese Pronunciation Automatic Labeling Tool
Project description
ToJyutping
Install:
$ pip install ToJyutping
Usage:
>>> import ToJyutping
>>> ToJyutping.get_jyutping_list('一瓩係乜嘢嚟㗎?')
[('一', 'jat1'), ('瓩', 'cin1 ngaa5'), ('係', 'hai6'), ('乜', 'mat1'), ('嘢', 'je5'), ('嚟', 'lai4'), ('㗎', 'gaa3'), ('?', None)]
>>> ToJyutping.get_jyutping('一瓩係乜嘢嚟㗎?')
'一(jat1)瓩(cin1 ngaa5)係(hai6)乜(mat1)嘢(je5)嚟(lai4)㗎(gaa3)?'
>>> ToJyutping.get_ipa('一瓩係乜嘢嚟㗎?')
'一(jɐt˥)瓩(t͡sʰiːn˥ ŋaː˨˧)係(hɐi˨)乜(mɐt˥)嘢(jɛː˨˧)嚟(lɐi˨˩)㗎(kaː˧)?'
License
Source code is distributed under MIT license.
Dictionary data follows the original license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ToJyutping-0.1.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for ToJyutping-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f973dbb17584d1b7c649a37c17924e86f3c7c234e75f79abb3fce6566787b2f3 |
|
MD5 | 2165d4abc6d9f9e2623277f804a7ea11 |
|
BLAKE2b-256 | 1ad38669403cdf0414bda6b27b263e619d1b381bba8c11a77ddac3f94002cd5e |