TedYeh / Chinese_spelling_Correction

Chinese Grammar Error and Spelling Error Correction System - 中文文法錯誤及錯別字校正系統

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chinese Grammarly - Chinese Grammatical Error Correction

🤗Huggingface Repo •📃[Paper Coming Soon] •👨️Cheng-Hung Yeh

Overview

A Web Interface for Chinese Grammatical Error Correction.

Spelling-T5-Base instruction-tuned on over 1M sentences in traditional mandarin.

Grammar-T5-Base instruction-tuned on 5 tasks and over 150k sentences in traditional mandarin.

Usage

install necessary packages.

pip install -r requirements.txt

Setup flask web interface.

cd csc_t5
python demo.py

Finally, if you want to retrain the t5-cged model, following this command:

cd csc_t5
python training_zh_prompt_model_csc.py --do_train --do_predict

About

Chinese Grammar Error and Spelling Error Correction System - 中文文法錯誤及錯別字校正系統


Languages

Language:Jupyter Notebook 86.5%Language:Python 12.5%Language:HTML 0.7%Language:JavaScript 0.2%Language:CSS 0.1%