corticph / prefix-beam-search

Code for prefix beam search tutorial by @labodk
https://medium.com/corti-ai/ctc-networks-and-language-models-prefix-beam-search-explained-c11d1ee23306
184 stars 37 forks source link

log space #1

Open mohamad-hasan-sohan-ajini opened 6 years ago

mohamad-hasan-sohan-ajini commented 6 years ago

Hi

I write the equivalent prefix search which computed in log space instead of probability space. Although they could be mixed within the same function with an extra argument, say log_space. I also comment original version operation above logarithm space equivalent, keep tracking easier. They will be cleared before merge.

regards