From 46e5beede954594983ccf01344793a76271f028f Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 07 五月 2024 22:12:05 +0800
Subject: [PATCH] decoding key
---
funasr/models/sense_voice/search.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/funasr/models/sense_voice/search.py b/funasr/models/sense_voice/search.py
index 98d02db..694e569 100644
--- a/funasr/models/sense_voice/search.py
+++ b/funasr/models/sense_voice/search.py
@@ -370,6 +370,8 @@
# post process of one iteration
running_hyps = self.post_process(i, maxlen, maxlenratio, best, ended_hyps)
# end detection
+ # if len(ended_hyps) > 0:
+ # print(f"ended_hyps: {ended_hyps}")
if maxlenratio == 0.0 and end_detect([h.asdict() for h in ended_hyps], i):
logging.info(f"end detected at {i}")
break
--
Gitblit v1.9.1