Closed Balakiranred closed 3 years ago
Can some one look in to it and suggest me. Thanks Bala.
Hey @Balakiranred,
I am trying to reproduce your issue on my end. Honestly it's been a long time since I myself have used Openkiwi versions <2.0 and nothing jumps to mind as the reason for this to not work.
While I try to reproduce this issue, could you expand on your point 3.? Why couldn't you use a yaml to make the prediction?
Ah, I have found exactly the source of the problem.
You see, for our WMT19 submission we trained specific models for source tags and for target tags in order to maximize Pearson on the two separate tasks. The source model will only produce source tags and the target model will produce sentence-level scores + target tags.
Your issue here is that you are using this source model. If you change your command to:
CUDA_VISIBLE_DEVICES=1 nohup kiwi predict --gpu-id 0 --model estimator --test-source /data01/bala/TS-5707_openkiwi/de/de-en-val.txt.en --test-target /data01/bala/TS-5707_openkiwi/de/de-en-val.txt.de --output-dir /data01/bala/TS-5707_openkiwi/OpenKiwi-master/config/data/ --load-model /data01/bala/TS-5707_openkiwi/OpenKiwi-master/en_de.nmt_models/estimator/target_1/model.torch &
You should see the target side files generated correctly.
This is not a bug with Openkiwi, it is working as expected!
I will leave this issue open in case you have any follow-up questions.
Hi Captainvera,
Thank you very much for your reply. The solution worked out for me and PE is able to generate all the tag, gap and sentence scores files.
Regards Bala.
I'm happy to know your issue is solved!
Issue: The pretrained Predictor Estimator is not able to generate all the 3 files (Source_tags, gap_tags and hter) Only one file (Source_tags) is generated.
Here is what I have done.
Note: I did expect some error or info about the other two files. And also it's better if it show some info like 'The Prediction is Complete"
Could you please review and advice me what need to be corrected, to have all the 3 files (source_tags,gap_tags and hter) so that I can proceed with Evaluation process. Appreciate your help.
Thank you very much! Bala.