parlance / ctcdecode

PyTorch CTC Decoder bindings
MIT License
821 stars 241 forks source link

Bug in pruning #70

Open joemathai opened 6 years ago

joemathai commented 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

joemathai commented 6 years ago

Also, I am not sure why we have this https://github.com/parlance/ctcdecode/blob/0e3aef7b35200a14658fb762bebded93ee1288f9/ctcdecode/src/decoder_utils.cpp#L29