中文纠错在官方和HF 的demo站点表现不一致

Author: stoneinwindCreated Sep 1, 2026Updated Sep 1, 2026
Labelsquestion

Describe the Question

Please provide a clear and concise description of what the question is. 之前在本地用MacBertCSC onnx测试发现过渡correction的情况,然后(有意思的是): 用“他也吃不起官盐”去pycorrector提供的demo网址测试: 1)https://www.mulanai.com/product/corrector/#trial 这里输入输出完全一致,通过了测试

{ "output": { "input_text": "他也吃不起官盐", "corrected_text": "他也吃不起官盐", "items": { "vec_fragment": [ { "ori_frag": "他也吃不起官盐", "correct_frag": "他也吃不起官盐", "begin_pos": 0, "end_pos": 7 } ] } }, "created": 1788253955 }

2)https://huggingface.co/spaces/shibing624/pycorrector 这里输出也变成了:

他也吃不起青盐 [('官', '青', 5, 6)]

后台用的模型和算法不一样吗?感谢解惑