Committed by
GitHub
Fix building .Net package on Windows (#254)
正在显示
2 个修改的文件
包含
7 行增加
和
3 行删除
| @@ -69,8 +69,11 @@ const char *kUsage = | @@ -69,8 +69,11 @@ const char *kUsage = | ||
| 69 | "Valid decoding_method: greedy_search (default), modified_beam_search\n\n" | 69 | "Valid decoding_method: greedy_search (default), modified_beam_search\n\n" |
| 70 | "Valid provider: cpu (default), cuda, coreml\n\n" | 70 | "Valid provider: cpu (default), cuda, coreml\n\n" |
| 71 | "Please refer to \n" | 71 | "Please refer to \n" |
| 72 | - "https://k2-fsa.github.io/sherpa/onnx/pretrained_models/index.html\n" | ||
| 73 | - "for a list of pre-trained models to download.\n"; | 72 | + "https://k2-fsa.github.io/sherpa/onnx/pretrained_models/online-transducer/" |
| 73 | + "index.html\n" | ||
| 74 | + "for a list of pre-trained models to download.\n" | ||
| 75 | + "\n" | ||
| 76 | + "Note that this file supports only streaming transducer models.\n"; | ||
| 74 | 77 | ||
| 75 | int32_t main(int32_t argc, char *argv[]) { | 78 | int32_t main(int32_t argc, char *argv[]) { |
| 76 | if (argc < 6) { | 79 | if (argc < 6) { |
| @@ -88,7 +88,8 @@ def process_windows(s): | @@ -88,7 +88,8 @@ def process_windows(s): | ||
| 88 | prefix1 = f"{SHERPA_ONNX_DIR}/windows/sherpa_onnx/lib/" | 88 | prefix1 = f"{SHERPA_ONNX_DIR}/windows/sherpa_onnx/lib/" |
| 89 | prefix2 = f"{SHERPA_ONNX_DIR}/windows/sherpa_onnx/" | 89 | prefix2 = f"{SHERPA_ONNX_DIR}/windows/sherpa_onnx/" |
| 90 | prefix3 = f"{SHERPA_ONNX_DIR}/windows/" | 90 | prefix3 = f"{SHERPA_ONNX_DIR}/windows/" |
| 91 | - prefix4 = f"{SHERPA_ONNX_DIR}/windows/sherpa_onnx-${version}.data/data/bin/" | 91 | + prefix4 = f"{SHERPA_ONNX_DIR}/windows/sherpa_onnx-{version}.data/data/bin/" |
| 92 | + print(prefix1, prefix2, prefix3, prefix4) | ||
| 92 | 93 | ||
| 93 | lib_list = [] | 94 | lib_list = [] |
| 94 | for lib in libs: | 95 | for lib in libs: |
-
请 注册 或 登录 后发表评论