Minor fixes.

This commit is contained in:
Fangjun Kuang 2021-09-26 13:32:50 +08:00
parent 0dcfc4375d
commit 107e0c4c7e

View File

@ -283,7 +283,7 @@ def decode_one_batch(
# token_ids is a lit-of-list of IDs
token_ids = get_texts(best_path)
# hyps is a list of str, e.g., [['xxx yyy zzz'], ...]
# hyps is a list of str, e.g., ['xxx yyy zzz', ...]
hyps = bpe_model.decode(token_ids)
# hyps is a list of list of str, e.g., [['xxx', 'yyy', 'zzz'], ... ]