venkatasg commited on
Commit
8c5256a
·
1 Parent(s): 920f5ed
Files changed (1) hide show
  1. gleu.py +1 -1
gleu.py CHANGED
@@ -233,7 +233,7 @@ class gleu(evaluate.Metric):
233
  this_stats = [ s for s in gleu_calculator.gleu_stats(i,r_ind=ref) ]
234
  stats_by_ref[ref] = this_stats
235
 
236
- iter_stats[j] = [sum(scores) or scores in zip(iter_stats[j], this_stats)]
237
 
238
  final_gleu_score = get_gleu_stats([gleu_calculator.compute_gleu(stats)
239
  for stats in iter_stats ])[0]
 
233
  this_stats = [ s for s in gleu_calculator.gleu_stats(i,r_ind=ref) ]
234
  stats_by_ref[ref] = this_stats
235
 
236
+ iter_stats[j] = [sum(scores) for scores in zip(iter_stats[j], this_stats)]
237
 
238
  final_gleu_score = get_gleu_stats([gleu_calculator.compute_gleu(stats)
239
  for stats in iter_stats ])[0]