from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
inference_pipline = pipeline(
task=Tasks.language_score_prediction,
model='damo/speech_transformer_lm_zh-cn-common-vocab8404-pytorch',
output_dir='./tmp/'
)
rec_result = inference_pipline(text_in='hello 大 家 好 呀')
print(rec_result)
###报错
'language-score-prediction is not in the pipelines registry group language-score-prediction. Please make sure the correct version of ModelScope library is used.'
Environment
- OS (e.g., Linux):
- FunASR Version 1.1.14:
- ModelScope Version 1.20.1
- PyTorch Version (e.g., 2.0.0):
- How you installed funasr (
pip, source):
- Python version:
- GPU 3090
Additional context