OpenNMT Forum

Source and target word correspondence in Opennmt-py

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


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

Thank you , I found it