fairseq-gec icon indicating copy to clipboard operation
fairseq-gec copied to clipboard

Got an error while run `sh generate.sh`

Open tcxdgit opened this issue 5 years ago • 7 comments

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

May I know what‘s the reason?

tcxdgit avatar Jul 10 '19 09:07 tcxdgit

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

AlxBouras avatar Jul 16 '19 14:07 AlxBouras

--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 avatar Jul 18 '19 05:07 zhawe01

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.)

zhawe01 avatar Jul 18 '19 05:07 zhawe01

--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 avatar Jul 26 '19 09:07 tcxdgit

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 : )

tcxdgit avatar Jul 26 '19 09:07 tcxdgit

Hi i am geting the same error regarding test.m2

MrRobot2211 avatar Dec 19 '19 17:12 MrRobot2211

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

kkeleve avatar Mar 23 '22 10:03 kkeleve