Beam search score

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 ?

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.

thank you this is very helpful