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 ?
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