OpenNMT Forum

Source and target word correspondence in Opennmt-py

hi,
I want to know how to find for a source word its correspondent target word in translation tokens in OpenNMT-py

Hi,

Maybe look at the -attn_debug translation option that prints attention information of each target words.

Thank you , I found it