fix typo
Browse files- logmetric.py +1 -1
logmetric.py
CHANGED
@@ -195,7 +195,7 @@ class LogMetric(evaluate.Metric):
|
|
195 |
# TODO: get separate log entries (split before timestamps), replace timestamps with token and compare the log entry with BLEU
|
196 |
|
197 |
t_before_logmetric = time.perf_counter()
|
198 |
-
timestamp_score = np.mean([self.getLogMetric(p,r, sacrebleu) for p,r in zip(predictions,references)])
|
199 |
t_after_logmetric = time.perf_counter()
|
200 |
|
201 |
logmetric_duration = f" {t_after_logmetric - t_before_logmetric:0.10f}"
|
|
|
195 |
# TODO: get separate log entries (split before timestamps), replace timestamps with token and compare the log entry with BLEU
|
196 |
|
197 |
t_before_logmetric = time.perf_counter()
|
198 |
+
timestamp_score = np.mean([self.getLogMetric(p,r, self.sacrebleu) for p,r in zip(predictions,references)])
|
199 |
t_after_logmetric = time.perf_counter()
|
200 |
|
201 |
logmetric_duration = f" {t_after_logmetric - t_before_logmetric:0.10f}"
|