g2pM is a neural grapheme-to-phoneme conversion package for Mandarin Chinese, leveraging a transformer-based model to convert Chinese characters (pinyin) to phonetic symbols (bopomofo/zhuyin). Current version 0.1.2.5, released infrequently; last update in 2021.
pip install g2pmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize G2pM and convert pinyin to bopomofo.
Preprocess your text to extract pinyin syllables with tone numbers before using g2pM.
Run g2p = G2pM() once to trigger download; subsequent calls use cached model.
Consider using an alternative like pypinyin or jieba for Chinese text processing.
No dependency data recorded yet.