kanyun-inc / fairseq-gec

Source code for paper: Improving Grammatical Error Correction via Pre-Training a Copy-Augmented Architecture with Unlabeled Data
Other
245 stars 67 forks source link

Got an error while run `sh generate.sh` #13

Open tcxdgit opened 5 years ago

tcxdgit commented 5 years ago

generate.py: error: unrecognized arguments: --copy-ext-dict

May I know what‘s the reason?

AlxBouras commented 5 years ago

I'm experiencing the following error when I run the generate.sh script:

No such file or directory: './data/test.m2' Is this file missing or should I use another file in data_raw instead?

Also, in the outputema_last.nbest.txt file that is outputted by generate.sh, there are the following messages:

Label file not found: out/data_raw/test.label.src.txt Label file not found: out/data_raw/test.label.tgt.txt

Is this normal or are these files missing?

Thank you

zhawe01 commented 5 years ago

--copy-ext-dict is a parameter that you can use and this should not happen. Maybe you can provide more details about how you use generate.py.

zhawe01 commented 5 years ago

You can download CoNLL-2014 dataset for the test.m2 file. The generate.sh file don't rely on the test.label.src.txt and the test.label.tgt.txt. The name is incorrect and please check the script that you use. (Make sure that you download the pre-trained data.)

tcxdgit commented 5 years ago

--copy-ext-dict is a parameter that you can use and this should not happen. Maybe you can provide more details about how you use generate.py.

Thank you, I have fix the bug, the reason is that I didn't put the fairseq directory under my project.

tcxdgit commented 5 years ago

I'm experiencing the following error when I run the generate.sh script:

No such file or directory: './data/test.m2' Is this file missing or should I use another file in data_raw instead?

Also, in the outputema_last.nbest.txt file that is outputted by generate.sh, there are the following messages:

Label file not found: out/data_raw/test.label.src.txt Label file not found: out/data_raw/test.label.tgt.txt

Is this normal or are these files missing?

Thank you

I got the same error.

@zhawe01 What file should I put under ${DATA_RAW} ? And where should I put the test.m2 file ?

Thank for your reply : )

MrRobot2211 commented 4 years ago

Hi i am geting the same error regarding test.m2

kkeleve commented 2 years ago

I'm experiencing the following error when I run the generate.sh script: No such file or directory: './data/test.m2' Is this file missing or should I use another file in data_raw instead? Also, in the outputema_last.nbest.txt file that is outputted by generate.sh, there are the following messages: Label file not found: out/data_raw/test.label.src.txt Label file not found: out/data_raw/test.label.tgt.txt Is this normal or are these files missing? Thank you

I got the same error.

@zhawe01 What file should I put under ${DATA_RAW} ? And where should I put the test.m2 file ?

Thank for your reply : )

hi, did you solve this problem later? looking forward to your reply