/thai-grapheme-to-phoneme

Thai Grapheme-to-Phoneme (Thai G2P)

Primary LanguagePythonApache License 2.0Apache-2.0

Thai Grapheme-to-Phoneme

Thai Grapheme-to-Phoneme (Thai G2P)

I using data from http://thai-notes.com/ and ICU.

Install

install pythainlp from github

pip install https://github.com/PyThaiNLP/pythainlp/archive/dev.zip

and install pyicu.

Using

run

> python thai2ipa.py
Text : ผมเรียนอยู่ที่มหาวิทยาลัยขอนแก่นวิทยาเขตหนองคาย

phǒm|rian|yùu|thîi|ma-hǎa-wít-tha-yaa-lay-khɔ̌ɔn-kɛ̀ɛn|wít-tha-yaa-khèet|nɔ̌ɔŋ-khaay

About

Mr. Wannaphong Phatthiyaphaibun

Student

Bachelor of Science Program in Computer and Information Science,

Faculty of Applied Science and Engineering,

Nong Khai Campus, Khon Kaen University

wannaphong@kkumail.com