首页|期刊导航|四川大学学报(自然科学版)|一种基于联合检测编辑机制的司法文本智能纠错方法

一种基于联合检测编辑机制的司法文本智能纠错方法OA

An intelligent judicial text error correction method based on joint detection and editing mechanism

中文摘要英文摘要

在司法实践中,庭审记录往往存在语法不规范或表述含糊,如果不加处理就被用于计算机自动判决就可能出现理解错误,影响判决结果.因此,对庭审记录进行语法纠错十分必要.在实际应用中,语法纠错通常被建模为序列到序列的生成任务,即生产式语言模型.在细粒度纠错中,生成式语言模型容易产生流畅但语义偏离的输出,可靠性较为有限.为了解决这个问题,本文提出了一种基于联合检测编辑机制的纠错模型,将语法纠错任务重构为token级标签预测任务,对每个token直接进行预测编辑操作,实现精确纠错.本文设计了一个融合基础编辑操作和五类针对常见中文语法错误模式的专项转换标签丰富标签集,每个标签显式地编码错误类型和目标token,以提供可解释的纠错结果.为了提升模型的训练效率与预测准确率,token级连续相同的操作被合并为单一组合标签.基于联合训练策略,模型采用联合loss同步优化错误检测与类型分类任务,有效提高了模型的鲁棒性与语义忠实性.本文对多种预训练模型进行微调,使模型在多项指标上超越现有的生成式大语言模型,显著提升推理速度.实证分析表明,模型能够在保持语义忠实度的同时更加稳健地处理常见中文语法错误.

In judicial practice,the court transcripts often contain ungrammatical or ambiguous expressions,which,if left unprocessed and directly used for automatic judgment,may lead to misinterpretation by comput-ers and affect the final verdict.This highlights the importance of Chinese grammatical error correction(CGEC).Grammatical error correction is often modeled as a sequence-to-sequence generation task.Genera-tive language models tend to produce fluent but semantically deviated outputs in fine-grained correction,thus limiting their reliability.To address this problem,a text error correction model based on the joint detection and editing mechanism is proposed.In the model,the CGEC is reformulated as a token-level sequence label-ing task and predicting edit operations for each token to achieve precise corrections.A rich label set that inte-grates basic editing operations with five types of conversion labels targeting common Chinese grammatical er-rors is designed,where each label explicitly encodes the error type and the target token,thus providing inter-pretable correction results.To improve the training efficiency and prediction accuracy,consecutive identical operations at the character level are merged into one single composite label.Moreover,a joint training strat-egy is proposed by adopting a joint loss to simultaneously optimize error detection and type classification,en-hancing model robustness and semantic fidelity.Under this framework,multiple pre-trained models are fine-tuned.Finally,experimental results show that the model can consistently outperform the generative large lan-guage models across all metrics while significantly improving inference speed.Analysis of errors generated by large models further demonstrates that the sequence labeling approach maintains semantic fidelity while more robustly handling common Chinese grammatical errors.

王嘉宝;翁洋;李鑫

四川大学数学学院,成都 610065四川大学数学学院,成都 610065四川大学法学院,成都 610065

数理科学

中文语法纠错序列标注联合训练生成式大模型

Chinese grammatical error correctionsequence labelingjoint traininggenerative large lan-guage models

《四川大学学报(自然科学版)》 2026 (1)

208-217,10

四川省重点研发项目(2024YFFK0113)

10.19907/j.0490-6756.250293

评论