上海大学学报(自然科学版) ›› 2026, Vol. 32 ›› Issue (4): 665-677.doi: 10.12066/j.issn.1007-2861.2555

• 通信与信息工程 • 上一篇    

基于预训练特征中心的古汉语翻译模型

金彦亮1,2, 高至锋1,2, 高塬1,2   

  1. 1. 上海大学 通信与信息工程学院, 上海 200444;
    2. 上海大学 上海先进通信与数据科学研究院, 上海 200444
  • 收稿日期:2023-12-14 发布日期:2026-09-04
  • 通讯作者: 金彦亮(1973—),男,副教授,博士生导师,博士,研究方向为宽带无线通信、SG/下一代无线接入等.E-mail:jinyanliang@staff.shu.edu.cn E-mail:jinyanliang@staff.shu.edu.cn

Translating classical Chinese with pre-trained center embedding model

JIN Yanliang1,2, GAO Zhifeng1,2, GAO Yuan1,2   

  1. 1. School of Communication and Information Engineering, Shanghai University, Shanghai 200444, China;
    2. Shanghai Institute for Advanced Communication and Data Science, Shanghai University, Shanghai 200444, China
  • Received:2023-12-14 Published:2026-09-04

摘要: 针对当前古汉语机器翻译任务中平行语料较少、因词义多变产生的模型翻译用词精确度低的问题,提出了一种基于Transformer模型的预训练特征中心算法模型.首先,训练语言模型和提取预训练特征中心,以提高在平行语料不足时的泛化能力;其次,Transformer模型在特征中心空间生成查询点,依据查询点确定生成在特征中心中的距离,以提高模型对一词多义的理解能力.实验结果表明,该方法在翻译准确率上总体高于基准模型,在西汉时期的数据集中BLEU 1~4分数分别高出Transformer模型6.1、4.9、3.7和2.8,在五代十国数据集中BLEU 1~4分数分别高出Transformer模型4.2、4.2、3.3和2.6,在唐朝数据集中BLEU 1~4分数表现最好.与此同时,相较于Transformer模型,该方法参数量下降了5.73 M,充分证明该算法模型的优势.

关键词: 自然语言处理, Transformer, 机器翻译, 预训练特征中心, 古汉语翻译

Abstract: To solve the low accuracy of model translation words owing to the lack of parallel corpora and variable meanings in the current ancient Chinese machine translation model, a Transformer-based pre-trained feature center algorithm model is proposed. This method first trains the language model to extract pretrained feature centers to improve generalization ability when parallel corpora are insufficient. Second, the Transformer generates queries in the feature center space and determines the generation based on the distance between the queries in the feature center to improve the model’s understanding of polysemy. The experimental results indicate that the generation accuracy of the proposed method is generally higher than that of the benchmark model. In the XiHan Datasets, BLEU 1~4 scores were 6.1, 4.9, 3.7, and 2.8 higher than those of the Transformers. In the WuDaiShiGuo Datasets, the BLEU 1~4 scores were 4.2, 4.2, 3.3, and 2.6 higher than those of the Transformers. In the Tang Datasets, the BLEU 1~4 scores were the best. Simultaneously, compared with the Transformer, the parameter count of the proposed method decreased by 5.73 M, demonstrating its advantages.

Key words: natural language processing, Transformer, machine translation, pre-trained feature center, classical Chinese translation

中图分类号: