Beam search score

(Djelassi Malek) #1

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


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