From 0ebc59866a2484ad18f1c7e5668cc4082d9c6fd6 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Thu, 2 Feb 2023 19:11:06 +0900 Subject: [PATCH] from local --- .../ASR/transformer_ctc/.decode.py.swp | Bin 53248 -> 53248 bytes egs/aishell/ASR/transformer_ctc/decode.py | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/egs/aishell/ASR/transformer_ctc/.decode.py.swp b/egs/aishell/ASR/transformer_ctc/.decode.py.swp index ed89711d8576dceab9281eaedb9f3b2ac769d92b..cc4e176b376425a1608a855cda260290843ab9ad 100644 GIT binary patch delta 280 zcmZozz}&EaSv1KY%+puFQqO<^2m}}y_aS{+a0zV zUI7Ud6lLa>XsD}eG9U>mKt+pE(-dqK)O8d}QY%V|qcdZ%s>-M=fT#j85DL=rixe_- y6hM-hc?zj{rMam^i6yBT8I?>0#giXYNKLk}E1T?FSpWCC#j5L*MW77z;p@fV<~n?Sq|h-U*aNLK<7ivjUVpef6Ncp3XWwaUqN?#_T diff --git a/egs/aishell/ASR/transformer_ctc/decode.py b/egs/aishell/ASR/transformer_ctc/decode.py index 0d71c3506..c0f8e87b6 100755 --- a/egs/aishell/ASR/transformer_ctc/decode.py +++ b/egs/aishell/ASR/transformer_ctc/decode.py @@ -470,7 +470,7 @@ def decode_dataset( token_dict=token_dict, ) ''' - decode_one_batch_greedy( + hyps = decode_one_batch_greedy( params=params, model=model, HLG=HLG, @@ -481,6 +481,11 @@ def decode_dataset( eos_id=eos_id, token_dict=token_dict, ) + + for i, hyp in enumerate(hyps): + print('hyp = ', hyp) + print('ref = ', texts[i]) + print('') ''' for lm_scale, hyps in hyps_dict.items():