Beam search score


(Djelassi Malek) #1

Hello,
As far as I know, beam search’s final result is the path with the highest probability. Where can I can the value of this probability inside OpenNMT-lua ? is there a way to add some paths manually to the search tree ?


(Guillaume Klein) #2

Hello,

The final scores are gathered here:

You can hack you way in the search tree in the code that is looking for the next candidates:

I hope these entry points are useful to you.


(Djelassi Malek) #3

thank you this is very helpful