mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
FIx decode_stream.py
This commit is contained in:
parent
1ee251c8b3
commit
23e2c0fa96
@ -79,7 +79,7 @@ class DecodeStream(object):
|
|||||||
self.pad_length = 7 + 2 * 3
|
self.pad_length = 7 + 2 * 3
|
||||||
|
|
||||||
if params.decoding_method == "greedy_search":
|
if params.decoding_method == "greedy_search":
|
||||||
self.hyp = [params.blank_id] * params.context_size
|
self.hyp = [-1] * (params.context_size - 1) + [params.blank_id]
|
||||||
elif params.decoding_method == "modified_beam_search":
|
elif params.decoding_method == "modified_beam_search":
|
||||||
self.hyps = HypothesisList()
|
self.hyps = HypothesisList()
|
||||||
self.hyps.add(
|
self.hyps.add(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user