parlance / ctcdecode

PyTorch CTC Decoder bindings
MIT License
829 stars 245 forks source link

How to increase the decode speed? #104

Closed anhle-uet closed 5 years ago

anhle-uet commented 5 years ago

I'm using CTCBeamDecoder with default setttings. num_processes=10, max sequence length is 37 and the size of lexicon is around 3000 characters. The decoding speed is kinda slow now.

animebing commented 5 years ago

@anhle-uet change cutoff_prob to log_cutoff_prob in this line, and you'd better set cutoff_prob less than 1.0 (such as 0.99) in __init__ of CTCBeamDecoder.

anhle-uet commented 5 years ago

Thanks, I'll try it out.