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