From c6d6c932a047f49f80eca33954afb802136f02c3 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 27 十二月 2023 16:43:30 +0800
Subject: [PATCH] funasr1.0

---
 examples/industrial_data_pretraining/punc/infer.sh |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/examples/industrial_data_pretraining/punc/infer.sh b/examples/industrial_data_pretraining/punc/infer.sh
index 9c40547..f6c5c23 100644
--- a/examples/industrial_data_pretraining/punc/infer.sh
+++ b/examples/industrial_data_pretraining/punc/infer.sh
@@ -1,9 +1,14 @@
 
-cmd="funasr/bin/inference.py"
+# download model
+local_path_root=./modelscope_models
+mkdir -p ${local_path_root}
+local_path=${local_path_root}/punc_ct-transformer_zh-cn-common-vocab272727-pytorch
+git clone https://www.modelscope.cn/damo/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404.git ${local_path}
 
-python $cmd \
-+model="/Users/zhifu/Downloads/modelscope_models/punc_ct-transformer_zh-cn-common-vocab272727-pytorch" \
-+input="/Users/zhifu/FunASR/egs_modelscope/punctuation/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/data/punc_example.txt" \
-+output_dir="/Users/zhifu/Downloads/ckpt/funasr2/exp2_punc" \
+
+python funasr/bin/inference.py \
++model="${local_path}" \
++input="${local_path}/example/punc_example.txt" \
++output_dir="./outputs/debug" \
 +device="cpu" \
 +debug="true"

--
Gitblit v1.9.1