paddlespeech.s2t.decoders.utils 模块
- paddlespeech.s2t.decoders.utils.add_results_to_json(js, nbest_hyps, char_list)[来源]
将N个最佳结果添加到json中。
- Args:
js (dict[str, Any]): 真实话语字典。
nbest_hyps_sd (list[dict[str, Any]]):多说话者的假设列表:nutts x nspkrs。
char_list (list[str]): 字符列表。
- Returns:
dict[str, Any]: N-best结果添加的发言字典。