Open joemathai opened 6 years ago
The code only prunes with cutoff_top_n if the probability cutoff_prob is set with a value less than 1.0 https://github.com/parlance/ctcdecode/blob/0e3aef7b35200a14658fb762bebded93ee1288f9/ctcdecode/src/decoder_utils.cpp#L20
Also, I am not sure why we have this https://github.com/parlance/ctcdecode/blob/0e3aef7b35200a14658fb762bebded93ee1288f9/ctcdecode/src/decoder_utils.cpp#L29
The code only prunes with cutoff_top_n if the probability cutoff_prob is set with a value less than 1.0 https://github.com/parlance/ctcdecode/blob/0e3aef7b35200a14658fb762bebded93ee1288f9/ctcdecode/src/decoder_utils.cpp#L20