粵語拼音自動標註工具 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ː˧)?'
Helper:
>>> ToJyutping.jyutping2ipa('jat1')
'jɐt˥'
License
This repository is distributed under MIT license.
Dictionary data is taken from rime/rime-cantonese, which is licensed under a Creative Commons Attribution 4.0 International 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.5.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for ToJyutping-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42f5eb09df051e44c99b3d8feab16cc3f8c712021e09e8cfbbf0f1bcab365a6e |
|
MD5 | a5185226077aabfcbcb77ec5b375a9c4 |
|
BLAKE2b-256 | 1cddd57d1f268c2e639dd1be72644a93763db09dec7c76343042971581f3e4b7 |