From 584a956bf485690defdcad3b2f2113eacc0ad3d1 Mon Sep 17 00:00:00 2001 From: Yifan Yang <64255737+yfyeung@users.noreply.github.com> Date: Wed, 31 May 2023 10:46:35 +0800 Subject: [PATCH] Update compute_perplexity.py --- icefall/rnn_lm/compute_perplexity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icefall/rnn_lm/compute_perplexity.py b/icefall/rnn_lm/compute_perplexity.py index 4eadafb27..a9a8d29d0 100755 --- a/icefall/rnn_lm/compute_perplexity.py +++ b/icefall/rnn_lm/compute_perplexity.py @@ -330,7 +330,7 @@ def main(): ppl = math.exp(tot_loss / num_tokens) logging.info( f"total nll: {tot_loss}, num tokens: {num_tokens}, " - f"num sentences: {num_sentences}, ppl: {ppl:.3f}, " + f"num sentences: {num_sentences}, ppl: {ppl:.3f}" )