OpenNMT Forum

Source and target word correspondence in Opennmt-py

opennmt-py
(Fatima) #1

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

(Guillaume Klein) #2

Hi,

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

(Fatima) #3

Thank you , I found it