ChineseBERT: Chinese Pretraining Enhanced by Glyph and Pinyin Information
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Natural Language Inference | XNLI (test) | Average Accuracy81.6 | 167 | |
| Named Entity Recognition | OntoNotes 4.0 (test) | F1 Score82.18 | 55 | |
| Named Entity Recognition | Weibo (test) | -- | 50 | |
| Single Sentence Classification | THUCNews (dev) | Accuracy98.3 | 36 | |
| Machine Reading Comprehension | CMRC 2018 (dev) | EM70.7 | 34 | |
| Sentiment Analysis | ChnSentiCorp (test) | Accuracy95.9 | 33 | |
| Sentiment Analysis | ChnSentiCorp (dev) | Accuracy95.8 | 33 | |
| Chinese Word Segmentation | PKU (test) | F197.16 | 32 | |
| Sentence-pair classification | BQ Corpus (test) | Accuracy86 | 27 | |
| Single Sentence Classification | THUCNews (test) | Accuracy97.9 | 27 |