开箱即用的中文文本纠错开源工具 pycorrector

fire1年前 ⋅ 2050 阅读
中文文本纠错任务,常见错误类型如下:

开箱即用
import pycorrector

corrected_sent, detail = pycorrector.correct('少先队员因该为老人让坐')
print(corrected_sent, detail)

output:

少先队员应该为老人让座 [('因该', '应该', 4, 6), ('坐', '座', 10, 11)]

https://github.com/shibing624/pycorrector

贡献一个 https://github.com/beyondacm/Autochecker4Chinese

全部评论: 0

    相关推荐