Skip to content

Commit

Permalink
fix: update bert_score test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ki-Seki committed Aug 19, 2024
1 parent f6cb730 commit 7606739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_keyword_precision(self):
def test_bert_score(self):
continuation = "这是一个测试"
reference = "这是一个测试"
self.assertEqual(bert_score(continuation, reference), 1.0)
self.assertAlmostEquals(bert_score(continuation, reference), 1.0, 6)


if __name__ == "__main__":
Expand Down

0 comments on commit 7606739

Please sign in to comment.