Skip to content

wannaphong/Thai_W2P

Repository files navigation

Thai W2P

Buy Me A Coffee

Thai Word-to-Phoneme (W2P) converter

Code base from AzamRabiee/Persian_G2P

Dataset License (file: data.csv) : Public Domain Mark

Google Colab: Open In Colab

usage

Install requirements

pip3 install -r requirements.txt

with word segment (many words)

python3 g2p.py --text "เป็นไลบรารีภาษาไพทอนสำหรับประมวลผลภาษาธรรมชาติ"

with one word (not word segment)

python3 g2p.py --text "คนดี" --wordcut n

Train

python3 train.py --name run