HillZhang1999 / MuCGEC

MuCGEC中文纠错数据集及文本纠错SOTA模型开源;Code & Data for our NAACL 2022 Paper "MuCGEC: a Multi-Reference Multi-Source Evaluation Dataset for Chinese Grammatical Error Correction"
https://aclanthology.org/2022.naacl-main.227/
Apache License 2.0
509 stars 64 forks source link

输入格式是怎样的? #40

Closed jiandam55 closed 1 year ago

jiandam55 commented 1 year ago

作者你好,./samples/demo.input是输入是吧?格式是怎样的?没找到代码里的示例

HillZhang1999 commented 1 year ago

https://github.com/HillZhang1999/MuCGEC/blob/main/scorers/ChERRANT/samples/demo.input

jiandam55 commented 1 year ago

谢谢,找到了。 不过运行demo.sh时又报错了 (base) root@VM-16-13-ubuntu:/www/wwwroot/MuCGEC# sh /www/wwwroot/MuCGEC/scorers/ChERRANT/demo.sh /www/wwwroot/MuCGEC/scorers/ChERRANT/demo.sh: line 6: $'\r': command not found /www/wwwroot/MuCGEC/scorers/ChERRANT/demo.sh: line 8: $'\r': command not found : No such file or directory/ChERRANT/demo.sh: line 9: ./samples/demo.hyp.para paste: './samples/demo.input'$'\r': No such file or directory python不熟悉,麻烦指点下,是不是demo里的路径要改改,我下完源码没动过

HillZhang1999 commented 1 year ago

好像是换行符的问题

jiandam55 commented 1 year ago

那咋办?我退格后重新换行么?

jiandam55 commented 1 year ago

试了下没有用。。

HillZhang1999 commented 1 year ago

refer to:https://stackoverflow.com/questions/1552749/difference-between-cr-lf-lf-and-cr-line-break-types