codebleu icon indicating copy to clipboard operation
codebleu copied to clipboard

Failure during HuggingFace Training loop (calc_codeblue doesn't exist)

Open fasterinnerlooper opened this issue 3 months ago • 0 comments

Hi @k4black ,

I have the following error when performing evaluation using CodeBleu in my HuggingFace training loop. Do you know what the issue could be?

[cut from longer output]
   result = metric.compute(predictions=decoder_preds, references=decoder_labels, lang=lang)
  File "/usr/local/lib/python3.9/dist-packages/evaluate/module.py", line 462, in compute
    output = self._compute(**inputs, **compute_kwargs)
  File "/notebooks/cache/huggingface/modules/evaluate_modules/metrics/k4black--codebleu/0510675d8d105d7f64b0458864c7f4b7ec3995ff230e89d27d92b9a7a635654d/codebleu.py", line 113, in _compute
    return self.codebleu_package.calc_codebleu(
AttributeError: module 'codebleu' has no attribute 'calc_codebleu'

fasterinnerlooper avatar Mar 22 '24 03:03 fasterinnerlooper