microsoft / CodeXGLUE

CodeXGLUE
MIT License
1.5k stars 363 forks source link

About CodeBLEU #162

Open gaoruiyang opened 1 year ago

gaoruiyang commented 1 year ago

image In Code-Code/code-to-code-trans/evaluator/CodeBLEU/calc_code_bleu.py Line 40, I think 'append' maybe 'extend' so that len(references) == len(pre_references)*len(hypothesis) If 'append', len(references) == len(hypothesis) is correct. Hope to hear your response soon, thx a lot.