from local

This commit is contained in:
dohe0342 2023-02-25 15:39:23 +09:00
parent 9446c425db
commit 33a8bcfc49
2 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ def decode_one_batch(
# hyps is a list of list of str, e.g., [['xxx', 'yyy', 'zzz'], ... ]
unk = bpe_model.decode(bpe_model.unk_id()).strip()
hyps = [[w for w in s.split() if w != unk] for s in hyps]
key = "ctc-greedy-search"
key = "greedy-search"
return {key: hyps}