Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.08 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.08 KB

Indonesian Grapheme-to-Phoneme

This module is designed to convert Indonesian graphemes (spelling) into phonemes (pronunciation). Fortunately, most Indonesian word pronunciations can be inferred from their spelling.

Big thanks to Wilson Wongso for sharing about Predicting Phonemes with BERT. I used his code to implement the predictor used in this module.

Installation

pip install git+https://github.com/Wikidepia/g2p-id

Example usage

from g2p_id import G2P

g2p = G2P()
g2p("Rumah Agus terbakar.") # ˈrumah ˈaɡʊs tərˈbakar.

References

TODO

  • Add test cases
  • Better model for predicting "e"
  • Handle heteronym