venkatasg commited on
Commit
920f5ed
·
1 Parent(s): 8abe922
Files changed (1) hide show
  1. gleu.py +1 -1
gleu.py CHANGED
@@ -215,7 +215,7 @@ class gleu(evaluate.Metric):
215
  indices = []
216
  for j in range(num_iterations) :
217
  seed(j*101)
218
- indices.append([randint(0,len(args.reference)-1) for i in range(len(predictions))])
219
 
220
  for i,h in enumerate(predictions) :
221
  gleu_calculator.load_hypothesis_sentence(h)
 
215
  indices = []
216
  for j in range(num_iterations) :
217
  seed(j*101)
218
+ indices.append([randint(0,len(references)-1) for i in range(len(predictions))])
219
 
220
  for i,h in enumerate(predictions) :
221
  gleu_calculator.load_hypothesis_sentence(h)