|
@@ -1,14 +1,4 @@
|
|
|
|
|
|
|
|
-##################text.scp###################
|
|
|
|
|
-# inputs = "./egs_modelscope/punctuation/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/data/punc_example.txt"
|
|
|
|
|
-
|
|
|
|
|
-##################text#####################
|
|
|
|
|
-#inputs = "我们都是木头人不会讲话不会动"
|
|
|
|
|
-
|
|
|
|
|
-##################text file url#######################
|
|
|
|
|
-inputs = "https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_text/punc_example.txt"
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
from modelscope.pipelines import pipeline
|
|
from modelscope.pipelines import pipeline
|
|
|
from modelscope.utils.constant import Tasks
|
|
from modelscope.utils.constant import Tasks
|
|
|
|
|
|
|
@@ -19,5 +9,14 @@ inference_pipeline = pipeline(
|
|
|
output_dir="./tmp/"
|
|
output_dir="./tmp/"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+##################text.scp###################
|
|
|
|
|
+# inputs = "./egs_modelscope/punctuation/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/data/punc_example.txt"
|
|
|
|
|
+
|
|
|
|
|
+##################text#####################
|
|
|
|
|
+#inputs = "我们都是木头人不会讲话不会动"
|
|
|
|
|
+
|
|
|
|
|
+##################text file url#######################
|
|
|
|
|
+inputs = "https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_text/punc_example.txt"
|
|
|
|
|
+
|
|
|
rec_result = inference_pipeline(text_in=inputs)
|
|
rec_result = inference_pipeline(text_in=inputs)
|
|
|
print(rec_result)
|
|
print(rec_result)
|