giulio98 commited on
Commit
afabde5
1 Parent(s): f0701fa

Update codebleu.py

Browse files
Files changed (1) hide show
  1. codebleu.py +1 -1
codebleu.py CHANGED
@@ -77,7 +77,7 @@ class CodeBLEU(evaluate.Metric):
77
  # This defines the format of each prediction and reference
78
  features=datasets.Features({
79
  'predictions': datasets.Value('string'),
80
- 'references': datasets.Value('string'),
81
  }),
82
  # Homepage of the module for documentation
83
  homepage="http://module.homepage",
 
77
  # This defines the format of each prediction and reference
78
  features=datasets.Features({
79
  'predictions': datasets.Value('string'),
80
+ 'references': datasets.Sequence(datasets.Value("string")),
81
  }),
82
  # Homepage of the module for documentation
83
  homepage="http://module.homepage",