From 7c56d8f06b719b083836c992105a52172d1fbeb2 Mon Sep 17 00:00:00 2001 From: marcoyang Date: Wed, 4 Oct 2023 00:09:27 +0800 Subject: [PATCH] fix a bug in samping function --- egs/libriheavy/ASR/zipformer_prompt_asr/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/libriheavy/ASR/zipformer_prompt_asr/dataset.py b/egs/libriheavy/ASR/zipformer_prompt_asr/dataset.py index fa508ba58..e0bf8f73d 100644 --- a/egs/libriheavy/ASR/zipformer_prompt_asr/dataset.py +++ b/egs/libriheavy/ASR/zipformer_prompt_asr/dataset.py @@ -370,7 +370,7 @@ def triplet_text_sampling_with_context_list( # get the normalized text and pre_text text = transforms[i_text](gt_text) pre_text = get_pre_text_with_context_list2( - text=gt_pre_text, + text=gt_text, pre_text=gt_pre_text, context_list=context_list, rare_words_list=rare_word_list,