shibing624/pycorrector
Python toolkit applying KenLM, T5, MacBERT, ChatGLM3, Qwen2.5 and other models to Chinese text error correction.

Velocity · 7d
+2.1
★ / day
Trend
→steady
star history
pycorrector is a text correction toolkit that implements various neural models including BERT, MacBERT, T5, GPT, ChatGLM3, Qwen2.5, and ERNIE for Chinese spelling and grammar error correction. It provides evaluation metrics comparing different model approaches and supports both rule-based (KenLM) and neural approaches. The toolkit covers common error types including phonetic similarity, character shape similarity, and grammatical errors.