speech_asr
2023-04-20 a29166b9a0c1c424402a23cfd9df77fd8994eaa0
update
1个文件已修改
11 ■■■■ 已修改文件
funasr/utils/build_asr_model.py 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/utils/build_asr_model.py
@@ -268,7 +268,7 @@
            token_list=token_list,
            **args.model_conf,
        )
    elif args.model == "paraformer":
    elif args.model in ["paraformer", "paraformer_bert", "bicif_paraformer", "contextual_paraformer"]:
        # predictor
        predictor_class = predictor_choices.get_class(args.predictor)
        predictor = predictor_class(**args.predictor_conf)
@@ -336,7 +336,14 @@
            stride_conv=stride_conv,
            **args.model_conf,
        )
    elif args.model == "timestamp_prediction":
        model_class = model_choices.get_class(args.model)
        model = model_class(
            frontend=frontend,
            encoder=encoder,
            token_list=token_list,
            **args.model_conf,
        )
    else:
        raise NotImplementedError("Not supported model: {}".format(args.model))