中古漢語自動標註工具 Middle Chinese Pronunciation Automatic Labeling Tool
Project description
ToMiddleChinese
Install
$ pip install ToMiddleChinese
Usage
>>> import ToMiddleChinese
>>> # 音韻地位 (Description of Phonological Position)
>>> ToMiddleChinese.get_pos_list('遙襟甫暢,逸興遄飛。')
[('遙', '以開三宵平'), ('襟', '見開三B侵平'), ('甫', '幫三虞上'), ('暢', '徹開三陽去'), (',', None), ('逸', '以開三眞入'), ('興', '曉開三蒸平'), ('遄', '常合三仙平'), ('飛', '幫三微平'), ('。', None)]
>>> ToMiddleChinese.get_pos('遙襟甫暢,逸興遄飛。')
'遙(以開三宵平)襟(見開三B侵平)甫(幫三虞上)暢(徹開三陽去),逸(以開三眞入)興(曉開三蒸平)遄(常合三仙平)飛(幫三微平)。'
>>> ToMiddleChinese.get_pos_text('遙襟甫暢,逸興遄飛。')
'以開三宵平 見開三B侵平 幫三虞上 徹開三陽去,以開三眞入 曉開三蒸平 常合三仙平 幫三微平。'
>>> # 切韻拼音 (Tshet-uinh Phonetic Alphabet)
>>> ToMiddleChinese.get_tupa_list('遙襟甫暢,逸興遄飛。')
[('遙', 'jiew'), ('襟', 'kyim'), ('甫', 'puoq'), ('暢', 'trhyangh'), (',', None), ('逸', 'jit'), ('興', 'hyngh'), ('遄', 'djwien'), ('飛', 'puj'), ('。', None)]
>>> ToMiddleChinese.get_tupa('遙襟甫暢,逸興遄飛。')
'遙(jiew)襟(kyim)甫(puoq)暢(trhyangh),逸(jit)興(hyngh)遄(djwien)飛(puj)。'
>>> ToMiddleChinese.get_tupa_text('遙襟甫暢,逸興遄飛。')
'jiew kyim puoq trhyangh, jit hyngh djwien puj.'
>>> # 古韻羅馬字 (Koxyonh’s Romanization)
>>> ToMiddleChinese.get_kyonh_list('遙襟甫暢,逸興遄飛。')
[('遙', 'jeu'), ('襟', 'kim'), ('甫', 'pyox'), ('暢', 'thriangh'), (',', None), ('逸', 'jit'), ('興', 'hingh'), ('遄', 'zjyen'), ('飛', 'pyoi'), ('。', None)]
>>> ToMiddleChinese.get_kyonh('遙襟甫暢,逸興遄飛。')
'遙(jeu)襟(kim)甫(pyox)暢(thriangh),逸(jit)興(hingh)遄(zjyen)飛(pyoi)。'
>>> ToMiddleChinese.get_kyonh_text('遙襟甫暢,逸興遄飛。')
'jeu kim pyox thriangh, jit hingh zjyen pyoi.'
>>> # unt 切韻擬音 (unt’s Qieyun Reconstruction)
>>> ToMiddleChinese.get_unt_list('遙襟甫暢,逸興遄飛。')
[('遙', 'jew'), ('襟', 'kɹim'), ('甫', 'púo'), ('暢', 'ʈʰàɴ'), (',', None), ('逸', 'jit'), ('興', 'xɨ̀ŋ'), ('遄', 'dʑwen'), ('飛', 'puj'), ('。', None)]
>>> ToMiddleChinese.get_unt('遙襟甫暢,逸興遄飛。')
'遙[jew]襟[kɹim]甫[púo]暢[ʈʰàɴ],逸[jit]興[xɨ̀ŋ]遄[dʑwen]飛[puj]。'
>>> ToMiddleChinese.get_unt_text('遙襟甫暢,逸興遄飛。')
'jew.kɹim.púo.ʈʰàɴ | jit.xɨ̀ŋ.dʑwen.puj'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ToMiddleChinese-0.2.2.tar.gz
(5.2 MB
view details)
Built Distribution
File details
Details for the file ToMiddleChinese-0.2.2.tar.gz
.
File metadata
- Download URL: ToMiddleChinese-0.2.2.tar.gz
- Upload date:
- Size: 5.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 359e013f093dfaeb82545a49ca2ce9e55cc3ca071f03088366b40294d01ca15b |
|
MD5 | 5def13bfb3000851d8532116b0835f87 |
|
BLAKE2b-256 | 99990bfc2c2c74d043fb4526a9a302d6dfc88fba226cc48bf176b618ba5f85ab |
File details
Details for the file ToMiddleChinese-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: ToMiddleChinese-0.2.2-py3-none-any.whl
- Upload date:
- Size: 5.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ec0d48bec908e261b4f3ff5ea5c57d9223fde027252233476da0519c1323f8 |
|
MD5 | 17189c49e62f51730351dc68dd17149b |
|
BLAKE2b-256 | 168084f6e1513ed2e4a66ec8349bcea7071a40c1cbd39f2247d6c6c6ec6fd335 |