Spaces:
Runtime error
Runtime error
update
Browse files- ctc_eval.py +2 -0
ctc_eval.py
CHANGED
@@ -90,6 +90,8 @@ class CTC_Eval(evaluate.EvaluationModule):
|
|
90 |
def _compute(self, predictions, references):
|
91 |
"""Returns the scores"""
|
92 |
# TODO: Compute the different scores of the module
|
|
|
|
|
93 |
ctc_score = self.scorer.score(doc=references, refs=[], hypo=predictions, aspect='consistency')
|
94 |
return {
|
95 |
"ctc_score": ctc_score,
|
|
|
90 |
def _compute(self, predictions, references):
|
91 |
"""Returns the scores"""
|
92 |
# TODO: Compute the different scores of the module
|
93 |
+
print(predictions)
|
94 |
+
print(references)
|
95 |
ctc_score = self.scorer.score(doc=references, refs=[], hypo=predictions, aspect='consistency')
|
96 |
return {
|
97 |
"ctc_score": ctc_score,
|