from local

This commit is contained in:
dohe0342 2023-02-02 17:50:27 +09:00
parent 28d21d2434
commit 8d8ed6a043
2 changed files with 4 additions and 0 deletions

View File

@ -255,10 +255,14 @@ def decode_one_batch(
subsampling_factor=params.subsampling_factor, subsampling_factor=params.subsampling_factor,
) )
logging.info(lattice)
if params.method == "ctc-decoding": if params.method == "ctc-decoding":
best_path = one_best_decoding( best_path = one_best_decoding(
lattice=lattice, use_double_scores=params.use_double_scores lattice=lattice, use_double_scores=params.use_double_scores
) )
logging.info(best_path)
# Note: `best_path.aux_labels` contains token IDs, not word IDs # Note: `best_path.aux_labels` contains token IDs, not word IDs
# since we are using H, not HLG here. # since we are using H, not HLG here.
# #