microsoft / CodeBERT

CodeBERT
MIT License
2.16k stars 446 forks source link

UnixCoder | Code Summarization : What is goldfile or reference file in BLEU.py? #192

Closed ChiragM-Hexaware closed 1 year ago

ChiragM-Hexaware commented 1 year ago

I was trying to execute the code on Kaggle and saw the reference file's path is passed through the command line arguments. I am unable to find that file plus the path for it. Can you please tell me which file I have to be passed there, It comes up as gold file further

guoday commented 1 year ago

https://github.com/microsoft/CodeBERT/blob/305bab27920d57ba37964ab05ee7b1acdbb24416/UniXcoder/downstream-tasks/code-summarization/bleu.py#L193-L199

python bleu.py gold_file << prediction_file