voidism / Zhuyin-to-ChineseWord

Auto-selecting Chinese word for Zhuyin (Bopomofo) sequence with Zhuyin level ELMo model and BiLSTM.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zhuyin convert to Chinese Word

This Project is made with ELMo and BiLSTM.

Requirement

  • download the ELMo model from here to the main directory.

Usage

$ python zhuyin2char.py live
model.ckpt load!
sent> 大家好         // 這裡程式會先幫你轉成注音「ㄉㄚˋ ㄐㄧㄚ ㄏㄠˇ」,之後才讓主程式還原
--
大 家 好

When running demo, punctuations or English words or numbers are not allow, otherwise it will output some wrong words.

About

Auto-selecting Chinese word for Zhuyin (Bopomofo) sequence with Zhuyin level ELMo model and BiLSTM.


Languages

Language:Python 100.0%