Skip to content
New issue

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

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

Already on GitHub? # to your account

KeyError: 'ᆶ' #15

Closed
lyger opened this issue Aug 27, 2022 · 2 comments
Closed

KeyError: 'ᆶ' #15

lyger opened this issue Aug 27, 2022 · 2 comments

Comments

@lyger
Copy link

lyger commented Aug 27, 2022

Hi, I'm processing some multilingual data, but I'm afraid I don't actually know Korean myself. I'm getting an error on this word. I don't know if the word is written incorrectly (if so, how should it be fixed?), or if it's a problem in the library. Any help would be appreciated.

korean_romanizer.Romanizer('뚫리고').romanize()
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-40-769d5465ca1f> in <module>
----> 1 korean_romanizer.Romanizer('뚫리고').romanize()

c:\program files\python37\lib\site-packages\korean_romanizer\romanizer.py in romanize(self)
    121                 else:
    122                     # s is a full syllable
--> 123                     _romanized += onset[s.initial] + vowel[s.medial] + coda[s.final]
    124 
    125             else:

KeyError: 'ᆶ'
@Min-Ho-Lim
Copy link
Contributor

Maybe I am late for this issue, but I created a pull request to fix this issue.
Hopefully, @osori is online and check my pull request.

@osori osori closed this as completed in cdbaab6 Jan 17, 2023
@osori
Copy link
Owner

osori commented Jan 17, 2023

@lyger, My apologies for taking soooo long to get back to you... and thanks a lot for pointing this out! The bug has been fixed by @Min-Ho-Lim's PR, please check and let me know if anything else isn't working.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants