FunASR/egs_modelscope/punctuation/punc_ct-transformer_zh-cn-common-vocab272727-pytorch
2023-03-07 18:25:47 +08:00
..
data update version 0.1.6 2023-01-16 18:46:40 +08:00
infer.py punc vad realtime infer 2023-03-07 18:25:47 +08:00
README.md update version 0.1.6 2023-01-16 18:46:40 +08:00

ModelScope Model

How to finetune and infer using a pretrained ModelScope Model

Inference

Or you can use the finetuned model for inference directly.

task=Tasks.punctuation, model='damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch',

  • Setting parameters in modelscope_common_infer.sh
    • model: damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch # pre-trained model, download from modelscope
    • text_in: input path, text or url
    • output_dir: the result dir
  • Then you can run the pipeline to infer with:
    python ./infer.py