ChineseBERT: Chinese Pretraining Enhanced by Glyph and Pinyin Information

Zijun Sun, Xiaoya Li, Xiaofei Sun, Yuxian Meng, Guoyin Wang +4 more
6/30/2021
cs.CL

Official code: ShannonAI/ChineseBert (568 stars, MIT, last commit 2023-07-26).

Abstract

Recent pretraining models in Chinese neglect two important aspects specific to the Chinese language: glyph and pinyin, which carry significant syntax and semantic information for language understanding. In this work, we propose ChineseBERT, which incorporates both the {\it glyph} and {\it pinyin} information of Chinese characters into language model pretraining. The glyph embedding is obtained based on different fonts of a Chinese character, being able to capture character semantics from the visual features, and the pinyin embedding characterizes the pronunciation of Chinese characters, which handles the highly prevalent heteronym phenomenon in Chinese (the same character has different pronunciations with different meanings). Pretrained on large-scale unlabeled Chinese corpus, the proposed ChineseBERT model yields significant performance boost over baseline models with fewer training steps. The porpsoed model achieves new SOTA performances on a wide range of Chinese NLP tasks, including machine reading comprehension, natural language inference, text classification, sentence pair matching, and competitive performances in named entity recognition. Code and pretrained models are publicly available at https://github.com/ShannonAI/ChineseBert.

View on arXivView PDF

Code Implementations(1)

MIT

Code for ACL 2021 paper "ChineseBERT: Chinese Pretraining Enhanced by Glyph and Pinyin Information"

56891Shell, PythonMay 31, 20213 years agoMIT

Cite this paper

@article{sun2021chinesebert,
  title  = {ChineseBERT: Chinese Pretraining Enhanced by Glyph and Pinyin Information},
  author = {Zijun Sun and Xiaoya Li and Xiaofei Sun and Yuxian Meng and Guoyin Wang and Xiang Ao and Qing He and Fei Wu and Jiwei Li},
  year   = {2021},
  eprint = {2106.16038},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.16038}
}

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/2106.16038.svg)](https://codeofpaper.com/paper/2106.16038)

Discussion