mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update
This commit is contained in:
parent
200d1ede05
commit
a29166b9a0
@ -268,7 +268,7 @@ def build_asr_model(args):
|
||||
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 @@ def build_asr_model(args):
|
||||
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))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user