Committed by
GitHub
add zipformer model_type (#97)
Co-authored-by: lichao <www.563042811@qq.com>
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -42,7 +42,7 @@ std::unique_ptr<OfflineRecognizerImpl> OfflineRecognizerImpl::Create( | @@ -42,7 +42,7 @@ std::unique_ptr<OfflineRecognizerImpl> OfflineRecognizerImpl::Create( | ||
| 42 | std::string model_type; | 42 | std::string model_type; |
| 43 | SHERPA_ONNX_READ_META_DATA_STR(model_type, "model_type"); | 43 | SHERPA_ONNX_READ_META_DATA_STR(model_type, "model_type"); |
| 44 | 44 | ||
| 45 | - if (model_type == "conformer") { | 45 | + if (model_type == "conformer" || model_type == "zipformer") { |
| 46 | return std::make_unique<OfflineRecognizerTransducerImpl>(config); | 46 | return std::make_unique<OfflineRecognizerTransducerImpl>(config); |
| 47 | } | 47 | } |
| 48 | 48 |
-
请 注册 或 登录 后发表评论