Closed pkufool closed 1 year ago
python sherpa/bin/online_transducer_asr.py --tokens exp-zh-zip/data/lang_char/tokens.txt --modeling-unit char --nn-model exp-zh-zip/zipformer/exp_L_causal_co
ntext_2/jit_script_chunk_16_left_128.pt --decoding-method modified_beam_search exp-zh/test_wavs/3.wav exp-zh/test_wavs/4.wav exp-zh/test_wavs/5.wav exp-zh/test
_wavs/6.wav
2023-06-20 16:59:57,945 INFO [online_transducer_asr.py:408] {'nn_model': 'exp-zh-zip/zipformer/exp_L_causal_context_2/jit_script_chunk_16_left_128.pt', 'tokens
': 'exp-zh-zip/data/lang_char/tokens.txt', 'sample_rate': 16000, 'feat_dim': 80, 'decoding_method': 'modified_beam_search', 'num_active_paths': 4, 'bpe_model':
'', 'modeling_unit': 'char', 'contexts': '', 'context_score': 1.5, 'max_contexts': 8, 'max_states': 64, 'allow_partial': True, 'LG': '', 'ngram_lm_scale': 0.0
1, 'beam': 4, 'use_gpu': False, 'num_threads': 1, 'sound_files': ['exp-zh/test_wavs/3.wav', 'exp-zh/test_wavs/4.wav', 'exp-zh/test_wavs/5.wav', 'exp-zh/test_wa
vs/6.wav']}
[I] /star-kw/kangwei/code/sherpa/sherpa/cpp_api/online-recognizer.cc:477:void sherpa::OnlineRecognizer::OnlineRecognizerImpl::WarmUp() 2023-06-20 17:00:00.236
WarmUp begins
[W BinaryOps.cpp:601] Warning: floor_divide is deprecated, and will be removed in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' f
unction NOT 'floor'). This results in incorrect rounding for negative values.
To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). (function o
perator())
[I] /star-kw/kangwei/code/sherpa/sherpa/cpp_api/online-recognizer.cc:500:void sherpa::OnlineRecognizer::OnlineRecognizerImpl::WarmUp() 2023-06-20 17:00:00.469
WarmUp ended
----------
exp-zh/test_wavs/3.wav
吴文森特考阿所是全球知名的法国性格派演员
----------
exp-zh/test_wavs/4.wav
蒋有伯被拍到带着女儿出游
----------
exp-zh/test_wavs/5.wav
周望君就落实控股价
----------
exp-zh/test_wavs/6.wav
朱莉楠在上市见面会上表示
python sherpa/bin/online_transducer_asr.py --tokens exp-zh-zip/data/lang_char/tokens.txt --modeling-unit char --nn-model exp-zh-zip/zipformer/exp_L_causal_c$ntext_2/jit_script_chunk_16_left_128.pt --context-score 2 --contexts $'\346\226\207\346\243\256\347\211\271\345\215\241\347\264\242/\350\222\213\345\217\213\3$5\215\232/\346\234\261\347\253\213\346\245\240/\345\221\250\346\234\233\345\206\233' --decoding-method modified_beam_search exp-zh/test_wavs/3.wav exp-zh/test_
wavs/4.wav exp-zh/test_wavs/5.wav exp-zh/test_wavs/6.wav
2023-06-20 17:00:07,568 INFO [online_transducer_asr.py:408] {'nn_model': 'exp-zh-zip/zipformer/exp_L_causal_context_2/jit_script_chunk_16_left_128.pt', 'tokens
': 'exp-zh-zip/data/lang_char/tokens.txt', 'sample_rate': 16000, 'feat_dim': 80, 'decoding_method': 'modified_beam_search', 'num_active_paths': 4, 'bpe_model':
'', 'modeling_unit': 'char', 'contexts': '文森特卡索/蒋友博/朱立楠/周望军', 'context_score': 2.0, 'max_contexts': 8, 'max_states': 64, 'allow_partial': True,
'LG': '', 'ngram_lm_scale': 0.01, 'beam': 4, 'use_gpu': False, 'num_threads': 1, 'sound_files': ['exp-zh/test_wavs/3.wav', 'exp-zh/test_wavs/4.wav', 'exp-zh/te
st_wavs/5.wav', 'exp-zh/test_wavs/6.wav']}
[I] /star-kw/kangwei/code/sherpa/sherpa/cpp_api/online-recognizer.cc:477:void sherpa::OnlineRecognizer::OnlineRecognizerImpl::WarmUp() 2023-06-20 17:00:10.455
WarmUp begins
[W BinaryOps.cpp:601] Warning: floor_divide is deprecated, and will be removed in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' f
unction NOT 'floor'). This results in incorrect rounding for negative values.
To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). (function o
perator())
[I] /star-kw/kangwei/code/sherpa/sherpa/cpp_api/online-recognizer.cc:500:void sherpa::OnlineRecognizer::OnlineRecognizerImpl::WarmUp() 2023-06-20 17:00:10.711
WarmUp ended
Contexts list: ['文森特卡索', '蒋友博', '朱立楠', '周望军']
----------
exp-zh/test_wavs/3.wav
吴文森特卡索是全球知名的法国性格派演员
----------
exp-zh/test_wavs/4.wav
蒋友博被拍到带着女儿出游
----------
exp-zh/test_wavs/5.wav
周望军就落实控股价
----------
exp-zh/test_wavs/6.wav
朱立楠在上市见面会上表示
Contextual-biasing results for non-streaming transducer model.
Decode with contexts phrases
Decode without contexts phrases