Skip to content

Commit

Permalink
fix perplexity value of shorter passage
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed May 14, 2024
1 parent 8a007eb commit 6961cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_perplexity.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def test_perplexity_short(metric):
sample_text = "Once upon a time, there was a little car named Beep. Beep loved to go fast and play in the sun."
result = metric.compute([sample_text])
ppl = result["score"]
assert round(ppl, 2) == 5.37
assert round(ppl, 2) == 10.02

0 comments on commit 6961cb9

Please sign in to comment.