zhifu gao
2024-05-08 b1c186fd00fef54bcad3aa1d073a1a313642d641
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