paddlespeech.s2t.decoders.utils module
- paddlespeech.s2t.decoders.utils.add_results_to_json(js, nbest_hyps, char_list)[source]
Add N-best results to json.
- Args:
js (dict[str, Any]): Groundtruth utterance dict. nbest_hyps_sd (list[dict[str, Any]]):
List of hypothesis for multi_speakers: nutts x nspkrs.
char_list (list[str]): List of characters.
- Returns:
dict[str, Any]: N-best results added utterance dict.