Update metrics/bleu.py
Browse files- metrics/bleu.py +2 -2
metrics/bleu.py
CHANGED
@@ -11,7 +11,7 @@ def compute_bleu(
|
|
11 |
force=False,
|
12 |
lowercase=False,
|
13 |
tokenize=None,
|
14 |
-
|
15 |
):
|
16 |
references_per_prediction = len(references[0])
|
17 |
if any(len(refs) != references_per_prediction for refs in references):
|
@@ -26,7 +26,7 @@ def compute_bleu(
|
|
26 |
smooth_value=smooth_value,
|
27 |
force=force,
|
28 |
lowercase=lowercase,
|
29 |
-
|
30 |
**(dict(tokenize=tokenize) if tokenize else {}),
|
31 |
)
|
32 |
output = bleu.corpus_score(
|
|
|
11 |
force=False,
|
12 |
lowercase=False,
|
13 |
tokenize=None,
|
14 |
+
effective_order=False,
|
15 |
):
|
16 |
references_per_prediction = len(references[0])
|
17 |
if any(len(refs) != references_per_prediction for refs in references):
|
|
|
26 |
smooth_value=smooth_value,
|
27 |
force=force,
|
28 |
lowercase=lowercase,
|
29 |
+
effective_order=effective_order,
|
30 |
**(dict(tokenize=tokenize) if tokenize else {}),
|
31 |
)
|
32 |
output = bleu.corpus_score(
|