Update negbleurt.py
Browse files- negbleurt.py +1 -0
negbleurt.py
CHANGED
@@ -62,6 +62,7 @@ class NegBLEURT(evaluate.Metric):
|
|
62 |
self, predictions, references, batch_size=16
|
63 |
):
|
64 |
single_ref = isinstance(references, str)
|
|
|
65 |
if single_ref:
|
66 |
print("single reference")
|
67 |
references = [references] * len(predictions)
|
|
|
62 |
self, predictions, references, batch_size=16
|
63 |
):
|
64 |
single_ref = isinstance(references, str)
|
65 |
+
print(single_ref, references)
|
66 |
if single_ref:
|
67 |
print("single reference")
|
68 |
references = [references] * len(predictions)
|