mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-07 08:04:18 +00:00
Fix an error.
This commit is contained in:
parent
3d833d9430
commit
8301faeb12
@ -361,9 +361,10 @@ def fast_beam_search_with_nbest_rescoring(
|
||||
oov_word_id = word_table[oov_word]
|
||||
|
||||
word_ids_list: List[List[int]] = []
|
||||
|
||||
for words in word_list:
|
||||
this_word_ids = []
|
||||
for w in words:
|
||||
for w in words.split():
|
||||
if w in word_table:
|
||||
this_word_ids.append(word_table[w])
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user