提交 ef1350f2 编写于 作者: Y Yibing Liu

correct typos in annotations

上级 0deb2e6a
...@@ -199,7 +199,7 @@ def ctc_beam_search_decoder_nproc(probs_split, ...@@ -199,7 +199,7 @@ def ctc_beam_search_decoder_nproc(probs_split,
''' '''
Beam search decoder using multiple processes. Beam search decoder using multiple processes.
:param probs_seq: 3-D list with length num_time_steps, each element :param probs_seq: 3-D list with length batch_size, each element
is a 2-D list of probabilities can be used by is a 2-D list of probabilities can be used by
ctc_beam_search_decoder. ctc_beam_search_decoder.
......
...@@ -189,7 +189,7 @@ def infer(): ...@@ -189,7 +189,7 @@ def infer():
wer_counter += 1 wer_counter += 1
print("cur wer = %f , average wer = %f" % print("cur wer = %f , average wer = %f" %
(wer_cur, wer_sum / wer_counter)) (wer_cur, wer_sum / wer_counter))
# beam search in multiple processes # beam search using multiple processes
elif args.decode_method == "beam_search_nproc": elif args.decode_method == "beam_search_nproc":
ext_scorer = Scorer(args.alpha, args.beta, args.language_model_path) ext_scorer = Scorer(args.alpha, args.beta, args.language_model_path)
beam_search_nproc_results = ctc_beam_search_decoder_nproc( beam_search_nproc_results = ctc_beam_search_decoder_nproc(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册