g2pW: A Conditional Weighted Softmax BERT for Polyphone Disambiguation in Mandarin

Yi-Chang Chen, Yu-Chuan Chang, Yen-Cheng Chang, Yi-Ren Yeh
3/20/2022
cs.CLcs.SDeess.AS

Official code: GitYCC/g2pW (423 stars, Python, Apache-2.0, last commit 2026-10-19).

Abstract

Polyphone disambiguation is the most crucial task in Mandarin grapheme-to-phoneme (g2p) conversion. Previous studies have approached this problem using pre-trained language models, restricted output, and extra information from Part-Of-Speech (POS) tagging.

Show full abstract

Inspired by these strategies, we propose a novel approach, called g2pW, which adapts learnable softmax-weights to condition the outputs of BERT with the polyphonic character of interest and its POS tagging. Rather than using the hard mask as in previous works, our experiments show that learning a soft-weighting function for the candidate phonemes benefits performance. In addition, our proposed g2pW does not require extra pre-trained POS tagging models while using POS tags as auxiliary features since we train the POS tagging model simultaneously with the unified encoder. Experimental results show that our g2pW outperforms existing methods on the public CPP dataset. All codes, model weights, and a user-friendly package are publicly available.

View on arXivView PDF

Code Implementations(1)

GitYCC/g2pWOfficial100%
Apache-2.0

Chinese Mandarin Grapheme-to-Phoneme Converter. 中文轉注音或拼音 (INTERSPEECH 2022)

42352Python, Jupyter NotebookMar 11, 20221 months agoApache-2.0
bertchineseg2ptts

Similar Papers

Cite this paper

@article{chen2022gpw,
  title  = {g2pW: A Conditional Weighted Softmax BERT for Polyphone Disambiguation in Mandarin},
  author = {Yi-Chang Chen and Yu-Chuan Chang and Yen-Cheng Chang and Yi-Ren Yeh},
  year   = {2022},
  eprint = {2203.10430},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.10430}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.10430.svg)](https://codeofpaper.com/paper/2203.10430)

Discussion