MCPcopy Index your code
hub / github.com/HillZhang1999/gec_error_template

github.com/HillZhang1999/gec_error_template @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
5 symbols 13 edges 1 files 0 documented · 0% updated 4y ago★ 441 open issues

Browse by type

Functions 5 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Error Templates for Grammatical Error Correction

Code for the paper: "Mining Error Templates for Grammatical Error Correction". If you use any part of this work, please cite our paper:

@article{zhang2022templates,
  title={Mining Error Templates for Grammatical Error Correction}, 
  author={Yue Zhang and Haochen Jiang and Zuyi Bao and Bo Zhang and Chen Li and Zhenghua Li},
  journal={arXiv preprint arXiv:2206.11569},
  year={2022}
}

Introduction

Some grammatical error correction (GEC) systems incorporate hand-crafted rules and achieve positive results. However, manually defining rules is time-consuming and laborious. In view of this, we propose a method to automatically mine error templates for GEC.

We have accumulated 1,119 error templates along with their corrective actions for Chinese GEC so far (./templates/zh), and open-source 500 of them at present. Each template conforms to the following form:

A
B
1/2/3

We use the regular expression A.*B to represent a error template, and 1/2/3 denote three corrective actions (delete the left/right/random part). For more details, please kindly refer to our paper.

Requirements

Python >= 3.6

Usage

chmod +x example.sh
./example.sh

Expected output:

Fix 3 errors from 3 sentences.

Contact

If you have any problems, feel free to raise an issue or contact hillzhang1999@qq.com.

Core symbols most depended-on inside this repo

Shape

Function 5

Languages

Python100%

Modules by API surface

run.py5 symbols

For agents

$ claude mcp add gec_error_template \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page