typo
Browse files
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(
|
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)
|