shibing624 / pycorrector

pycorrector is a toolkit for text error correction. 文本纠错,实现了Kenlm,T5,MacBERT,ChatGLM3,Qwen2.5等模型应用在纠错场景,开箱即用。
https://www.mulanai.com/product/corrector/
Apache License 2.0
5.61k stars 1.1k forks source link

AttributeError: 'MacBertCorrector' object has no attribute 'correct_batch' #501

Closed sakuradiss closed 4 months ago

sakuradiss commented 4 months ago

AttributeError: 'MacBertCorrector' object has no attribute 'correct_batch'

shibing624 commented 4 months ago

pip install pycorrector -U

sakuradiss commented 4 months ago

pip install pycorrector -U 大佬,我在执行本地模型的时候不能设置成相对路径是什么原因呢

shibing624 commented 4 months ago

看下python的sys.path的作用,不懂的话就写绝对路径。