R1ckShi
2023-01-31 9f4bb0a0ee2e0c4e48fa06156ece67603b3098d7
funasr/bin/asr_inference_paraformer_timestamp.py
@@ -172,7 +172,7 @@
        self.converter = converter
        self.tokenizer = tokenizer
        is_use_lm = lm_weight != 0.0 and lm_file is not None
        if ctc_weight == 0.0 and not is_use_lm:
        if (ctc_weight == 0.0 or asr_model.ctc == None) and not is_use_lm:
            beam_search = None
        self.beam_search = beam_search
        logging.info(f"Beam_search: {self.beam_search}")