xlxwalex / FCGEC

The Corpus & Code for EMNLP 2022 paper "FCGEC: Fine-Grained Corpus for Chinese Grammatical Error Correction" | FCGEC中文语法纠错语料及STG模型
https://aclanthology.org/2022.findings-emnlp.137
Apache License 2.0
104 stars 12 forks source link

Single-sentence text inference directly using FCGEC-Joint #15

Closed yuan-cherish closed 1 year ago

yuan-cherish commented 1 year ago

Hello, I have finished predicting the test set according to the steps you provided, but now I want to predict only one line of text how to do it? Obviously the prediction steps you provided are a bit too responsible, can I just use Forwardl of FCGEC-Joint to fix a single line of text? If so could you please give me an example?

xlxwalex commented 1 year ago

Thank you for your interest in our work. Actually, I have designed a tool (website with server) for error correction in the process of modeling. It may meet your requirements. I will simplify it into a DEMO version and update it in the code. Please keep an eye on our repository.

yuan-cherish commented 1 year ago

Ok thanks a lot, looking forward to your subsequent contributions.

xlxwalex commented 1 year ago

Hi, i have comitted the two new features in this repo:

1. Single line inference: You can refer to inference_singleline.py for predicting one line of text.

~H9{D 3DR7Y Q_CWZPDSJJG

2. Document reporter: The code in app can be utilized to generate the detailed report for error correction task. The demo script is shown in demo_pipeline.py. demo-v2

If you have any questions, feel free to leave comments here.

yuan-cherish commented 1 year ago

Yes, that's what I was looking for, thanks a lot!

xlxwalex commented 1 year ago

:)You're welcome