Research Article

Chinese Punctuation Restoration Based on Transformer Model

Yizhen He*
Shanghai Jiao Tong University, Shanghai, China, 200240

* Corresponding author: [email protected]

Abstract

This paper explores the application of Chinese punctuation restoration technology utilizing the pretrained Transformer model XLM-RoBERTa-Base. With the increasing use of digital communication and development of automatic speech recognition, the absence of punctuation can lead to problems like misunderstandings, thus highlighting the importance of effective punctuation restoration technology. This paper focuses on Chinese punctuation restoration with data collected from the IWSLT2012 dataset, where punctuation signs are replaced with designated labels for preprocessing. The Transformer model is fine-tuned on this dataset, focusing on restoring punctuation tasks. After the training, the model's performance is evaluated using metrics including loss, accuracy, PR curves, and confusion matrices. The results indicate that, compared to existing models, the model outperforms in restoring Period and Question. However, the capacity of restoring Comma fails to be enhanced and remains at a moderate level. Also, the punctuation restoration of Chinese faces a performance drop compared to English but improvement compared to Bangla, with same model architecture. Over all, our findings demonstrate the applicability of pretrained Transformer models in Chinese punctuation restoration and suggest avenues for future improvements, particularly in enhancing comma restoration.

Keywords: Punctuation Restoration; Transformer; Chinese; Fine Tuning
Published: May 30, 2025
DOI: 10.54254/2755-2721/2025.TJ23487
Volume: ACE Vol.160
pp. 29-36
Download PDF

References

  1. Nozaki, J., Kawahara, T., Ishizuka, K., & Hashimoto, T. (2022). End-to-end speech-to-punctuated-text recognition. arXiv preprint arXiv:2207.03169.
  2. Zhang, Z., Liu, J., Chi, L., & Chen, X. (2020, December). Word-level BERT-CNN-RNN model for Chinese punctuation restoration. In 2020 IEEE 6th International Conference on Computer and Communications (ICCC) (pp. 1629-1633). IEEE.
  3. IWSLT Home Page. 2012. International Workshop on Spoken Language Translation (IWSLT). https://iwslt.org/
  4. Tilk, O., & Alumäe, T. (2015, September). LSTM for punctuation restoration in speech transcripts. In Interspeech (pp. 683-687).
  5. Kolář, J., Švec, J., & Psutka, J. (2004). Automatic punctuation annotation in Czech broadcast news speech.
  6. Tilk, O., & Alumäe, T. (2016, September). Bidirectional Recurrent Neural Network with Attention Mechanism for Punctuation Restoration. In Interspeech (Vol. 3, p. 9).
  7. Nagy, A., Bial, B., & Ács, J. (2021). Automatic punctuation restoration with bert models. arXiv preprint arXiv:2101.07343.
  8. Yi, J., Tao, J., Bai, Y., Tian, Z., & Fan, C. (2020). Adversarial transfer learning for punctuation restoration. arXiv preprint arXiv:2004.00248.
  9. Ling, T., Lai, Y., Chen, L., Huang, S., & Liu, Y. (2023). A small and fast BERT for Chinese medical punctuation restoration. arXiv preprint arXiv:2308.12568.
  10. Chao, Y. C., & Chang, C. H. (2020, December). Automatic Punctuation Restoration for corpus in Traditional Chinese Language using Deep Learning. In 2020 International Conference on Technologies and Applications of Artificial Intelligence (TAAI) (pp. 91-96). IEEE.
  11. Alam, T., Khan, A., & Alam, F. (2020, November). Punctuation restoration using transformer models for high-and low-resource languages. In Proceedings of the Sixth Workshop on Noisy User-generated Text (W-NUT 2020) (pp. 132-142).
  12. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., ... & Polosukhin, I. (2017). Attention is all you need. Advances in neural information processing systems, 30.
  13. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., ... & Stoyanov, V. (2019). Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
  14. Common Crawl Home Page. 2007. Common Crawl. https://commoncrawl.org/
  15. Siami-Namini, S., Tavakoli, N., & Namin, A. S. (2019, December). The performance of LSTM and BiLSTM in forecasting time series. In 2019 IEEE International conference on big data (Big Data) (pp. 3285-3292). IEEE.