Home

Awesome

KoG2P

Given an input of a series of Korean graphemes/letters (i.e. Hangul), KoG2P outputs the corresponding pronunciations.

한국어의 문자열로부터 발음열을 생성하는 파이썬 기반 G2P 패키지입니다.
터미널에서 원하는 문자열을 함께 입력해 사용할 수 있습니다.

How to use?

On terminal, you simply can type in your input within quotations:

$ python g2p.py '박물관'

Then you'll get /방물관/ symbolized as follows:

p0 aa ng mm uu ll k0 wa nf

NB. Your input does not necessarily need to be a lemma or a legitimate sequence of Korean; the system will provide an output based on the phonological rules of Korean for any sequences in Hangul.

Requirement

Symbol table

Please check out the symbol table below for the mapping.

C/VPositionSymbols in HangulSymbols in KoG2P
consonantonsetp0
consonantonsetph
consonantonsetpp
consonantonsett0
consonantonsetth
consonantonsettt
consonantonsetk0
consonantonsetkh
consonantonsetkk
consonantonsets0
consonantonsetss
consonantonseth0
consonantonsetc0
consonantonsetch
consonantonsetcc
consonantonsetmm
consonantonsetnn
consonantonsetrr
consonantcodapf
consonantcodaph
consonantcodatf
consonantcodath
consonantcodakf
consonantcodakh
consonantcodakk
consonantcodas0
consonantcodass
consonantcodah0
consonantcodac0
consonantcodach
consonantcodamf
consonantcodanf
consonantcodang
consonantcodall
consonantcodaㄱㅅks
consonantcodaㄴㅈnc
consonantcodaㄴㅎnh
consonantcodaㄹㄱlk
consonantcodaㄹㅁlm
consonantcodaㄹㅂlb
consonantcodaㄹㅅls
consonantcodaㄹㅌlt
consonantcodaㄹㅍlp
consonantcodaㄹㅎlh
consonantcodaㅂㅅps
vowelmonophthongii
vowelmonophthongee
vowelmonophthongqq
vowelmonophthongaa
vowelmonophthongxx
vowelmonophthongvv
vowelmonophthonguu
vowelmonophthongoo
voweldiphthongye
voweldiphthongyq
voweldiphthongya
voweldiphthongyv
voweldiphthongyu
voweldiphthongyo
voweldiphthongwi
voweldiphthongwo
voweldiphthongwq
voweldiphthongwe
voweldiphthongwa
voweldiphthongwv
voweldiphthongxi

NB. IPA symbols for Korean phones can be found in the following page: IPA for Korean.

Reference

Please cite the following if using this code:

@misc{cho2017kog2p,
  title = {Korean Grapheme-to-Phoneme Analyzer (KoG2P)},
  author = {Yejin Cho},
  year = {2017},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/scarletcho/KoG2P}}
}

Thank you for your citations!