/Korean_auto-glossing

Let computer gloss Korean examples for you.

Primary LanguagePython

Korean_auto-glossing

Let computer gloss Korean examples for you!

It provides:

While I worked on a syntax qualifying paper, the most meaningless and tedious task was glossing all Korean examples. Interlinear glossing should be consistent, and being consistent is what computers excel at (especially when the task is boring). So let's make the computer do it for you.

It uses Kkma (part of konlpy.tag subpackage) for morphological analysis, googletrans for translation, and hangul_to_jamo (part of the kPNNpy subpackage) for the Yale romanization of Korean.

Usage

run worker.py with a Korean sentence. For example,

python3 worker.py 아버지께서 방에 들어가신다.

... and the terminal returns.

input:   아버지께서 방에 들어가신다.
Yale:    Apeci-kkeyse           pang-ey         tuleka-si-nta.
gloss:   father-NOM.HON         room-ADVZ       enter-HON-DECL
translation:     'Father enters the room.'