Goto

Collaborating Authors

 chinesebert


ChineseBERT: Chinese Pretraining Enhanced by Glyph and Pinyin Information

arXiv.org Artificial Intelligence

Since pretraining models are originally designed for English, two important aspects specific to theRecent pretraining models in Chinese neglect two important aspects specific to the Chinese Chinese language are missing in current large-scale language: glyph and pinyin, which carry sig-pretraining: glyph-based information and pinyinnificant syntax and semantic information forbased information. In this work, we pro-that makes Chinese distinguishable from languages pose ChineseBERT, which incorporates both the glyph and pinyin information of Chinese such as English, German, is that Chinese is a logographic language. For example,The glyph embedding is obtained based on "液(liquid)", "河(river)" and "湖(lake)" all have thedifferent fonts of a Chinese character, being able to capture character semantics from theradical "氵(water)", which indicates that they are visual features, and the pinyin embedding char-all related to water in semantics. Intuitively, the acterizes the pronunciation of Chinese char-rich semantics behind Chinese character glyphs acters, which handles the highly prevalent heteronym phenomenon in Chinese (the same charshould enhance the expressiveness of Chinese NLP models. This idea has motivated a variety of of acter has different pronunciations with differwork on learning and incorporating Chinese glyph ent meanings). Pretrained on large-scale uninformation into neural models (Sun et al., 2014;labeled Chinese corpus, the proposed ChineseBERT model yields significant performance Shi et al., 2015; Liu et al., 2017; Dai and Cai, 2017; boost over baseline models with fewer training Su and Lee, 2017; Meng et al., 2019), but not yet steps.


Bi-DCSpell: A Bi-directional Detector-Corrector Interactive Framework for Chinese Spelling Check

arXiv.org Artificial Intelligence

Chinese Spelling Check (CSC) aims to detect and correct potentially misspelled characters in Chinese sentences. Naturally, it involves the detection and correction subtasks, which interact with each other dynamically. Such interactions are bi-directional, i.e., the detection result would help reduce the risk of over-correction and under-correction while the knowledge learnt from correction would help prevent false detection. Current CSC approaches are of two types: correction-only or single-directional detection-to-correction interactive frameworks. Nonetheless, they overlook the bi-directional interactions between detection and correction. This paper aims to fill the gap by proposing a Bi-directional Detector-Corrector framework for CSC (Bi-DCSpell). Notably, Bi-DCSpell contains separate detection and correction encoders, followed by a novel interactive learning module facilitating bi-directional feature interactions between detection and correction to improve each other's representation learning. Extensive experimental results demonstrate a robust correction performance of Bi-DCSpell on widely used benchmarking datasets while possessing a satisfactory detection ability.


Character, Word, or Both? Revisiting the Segmentation Granularity for Chinese Pre-trained Language Models

arXiv.org Artificial Intelligence

Pretrained language models (PLMs) have shown marvelous improvements across various NLP tasks. Most Chinese PLMs simply treat an input text as a sequence of characters, and completely ignore word information. Although Whole Word Masking can alleviate this, the semantics in words is still not well represented. In this paper, we revisit the segmentation granularity of Chinese PLMs. We propose a mixed-granularity Chinese BERT (MigBERT) by considering both characters and words. To achieve this, we design objective functions for learning both character and word-level representations. We conduct extensive experiments on various Chinese NLP tasks to evaluate existing PLMs as well as the proposed MigBERT. Experimental results show that MigBERT achieves new SOTA performance on all these tasks. Further analysis demonstrates that words are semantically richer than characters. More interestingly, we show that MigBERT also works with Japanese. Our code and model have been released here~\footnote{https://github.com/xnliang98/MigBERT}.