mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Merge pull request #92 from alibaba-damo-academy/dev_lyb
add lm egs_modelscope
This commit is contained in:
commit
735f76195c
@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
##################text二进制数据#####################
|
||||
inputs = "hello 大 家 好 呀"
|
||||
|
||||
from modelscope.pipelines import pipeline
|
||||
from modelscope.utils.constant import Tasks
|
||||
|
||||
inference_pipline = pipeline(
|
||||
task=Tasks.language_model,
|
||||
model='damo/speech_transformer_lm_zh-cn-common-vocab8404-pytorch',
|
||||
output_dir="./tmp/"
|
||||
)
|
||||
|
||||
rec_result = inference_pipline(text_in=inputs)
|
||||
print(rec_result)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user