shibing624/pycorrector

pycorrector is a toolkit for text error correction. 文本纠错,实现了Kenlm,T5,MacBERT,ChatGLM3,Qwen2.5等模型应用在纠错场景,开箱即用。

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 6 minutes ago
Added to GitGenius on September 10th, 2026
Created on March 1st, 2018
Open Issues & Pull Requests: 25 (+0)
GitHub issues: Enabled
Number of forks: 1,164
Total Stargazers: 6,525 (+0)
Total Subscribers: 83 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.7 hours
Mean response time: 4.9 days
90th percentile: 4.4 days
Tracked items: 80

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 9% of issues opened in the past year have been closed. Three people close 70% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 24
New in 7 days: 1
Closed in 7 days: 6
Avg open age: 411 days
Stale 30+ days: 23
Stale 90+ days: 23

Recent activity

Opened in 7 days: 1
Closed in 7 days: 6
Comments in 7 days: 0
Events in 7 days: 1

Top labels

  • question (49)
  • bug (19)
  • enhancement (5)
  • wontfix (2)

Detailed Description

pycorrector is a Python toolkit for Chinese text error correction that supports multiple neural models out of the box.

The toolkit addresses the problem of correcting various types of Chinese text errors including phonetic similarities, visual similarities, grammatical mistakes, and proper noun errors. It implements multiple correction approaches: Kenlm language models for statistical correction, sequence-to-sequence models like ConvSeq2Seq, and transformer-based models including BERT, MacBERT, ELECTRA, ERNIE, and large language models like ChatGLM3 and Qwen. Users can select the model that best fits their use case, whether they need lightweight statistical approaches or more sophisticated neural methods.

The toolkit is most suitable for projects handling Chinese text that need to address multiple error types simultaneously. Different input methods and downstream tasks have varying priorities: pinyin input methods and speech recognition focus on phonetic errors, while OCR and handwriting recognition focus on visual errors, and search engines need to handle all error types. The project provides pre-trained models and evaluation benchmarks to help developers choose the right approach for their specific scenario.

The project maintains active development with regular model updates and performance improvements. Recent work has focused on integrating newer large language models and optimizing inference speed for specialized correction components. The toolkit includes comprehensive documentation and model releases on public model repositories to support adoption.