mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 08:34:19 +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]
|
oov_word_id = word_table[oov_word]
|
||||||
|
|
||||||
word_ids_list: List[List[int]] = []
|
word_ids_list: List[List[int]] = []
|
||||||
|
|
||||||
for words in word_list:
|
for words in word_list:
|
||||||
this_word_ids = []
|
this_word_ids = []
|
||||||
for w in words:
|
for w in words.split():
|
||||||
if w in word_table:
|
if w in word_table:
|
||||||
this_word_ids.append(word_table[w])
|
this_word_ids.append(word_table[w])
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user