Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified Chinese characters not supported #45

Open
zhiqiuiyiye opened this issue Mar 8, 2024 · 1 comment
Open

Simplified Chinese characters not supported #45

zhiqiuiyiye opened this issue Mar 8, 2024 · 1 comment
Labels

Comments

@zhiqiuiyiye
Copy link

I try to use the jyutping to convert characters to jyutping, but I found some character can be convert:
for example:
txt='昆省急救服务中心嘅医护人员昆省警方。'
the output is:
[('昆', 'gwan1'), ('省', 'saang2'), ('急救', 'gap1gau3'), ('服', 'fuk6'), ('务', None), ('中心', 'zung1sam1'), ('嘅', 'ge3'), ('医', 'ai3'), ('护', None), ('人', 'jan4'), ('员', None), ('昆', 'gwan1'), ('省', 'saang2'), ('警方', 'ging2fong1'), ('。', None)]
you can see that ‘务’,‘护’,‘员’ are None

@jacksonllee
Copy link
Owner

Hello! Currently, pycantonese (as of v3.4.0) supports only traditional characters. If your input contains simplified characters, you may consider piping it through a converter (such as OpenCC) before passing it to pycantonese.

@jacksonllee jacksonllee changed the title some characters not support in jyutping simplified characters not support in jyutping Mar 8, 2024
@jacksonllee jacksonllee changed the title simplified characters not support in jyutping Simplified Chinese characters not supported May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants