svenwey commited on
Commit
502c950
·
1 Parent(s): 9cb7c62

bug fix (take ["score"] from metric result)

Browse files
Files changed (1) hide show
  1. logmetric.py +1 -1
logmetric.py CHANGED
@@ -115,7 +115,7 @@ class LogMetric(evaluate.Metric):
115
 
116
  # Use minimum edit distance between two sentences
117
  def get_overall_similarity(self, sentence1, sentence2):
118
- return self.sacrebleu_metric.compute(predictions=sentence1, references=sentence2)
119
 
120
  # s1split = sentence1.split()
121
  # s2split = sentence2.split()
 
115
 
116
  # Use minimum edit distance between two sentences
117
  def get_overall_similarity(self, sentence1, sentence2):
118
+ return self.sacrebleu_metric.compute(predictions=sentence1, references=sentence2)["score"]
119
 
120
  # s1split = sentence1.split()
121
  # s2split = sentence2.split()