Please, I want to know if there is any tool or module to scor translation hypotheses withe the trained neural network.
The idea is to give a source sentence (e) and a translation (f), the system must evaluate the quality of this translation a give me a score representing the quality of the f according to e (P(f|e)).
Oh, I read it too quickly. So you should set the -tgt option with the file containing your translations and look for GOLD SCORE in the translation logs.
Thank you very much the -tgt option is what I wanted.
[10/20/17 16:53:12 INFO] SENT 3: القرار ألف وخمسمئة وسبع ألفان وثلاث (source)
[10/20/17 16:53:12 INFO] GOLD 3: resolution one thousand five hundred and seven two thousand and three (reference)
[10/20/17 16:53:12 INFO] GOLD SCORE: -14.72 (reference score)
[10/20/17 16:53:12 INFO] PRED 3: resolution two thousand and five two thousand and seven (output)
[10/20/17 16:53:12 INFO] PRED SCORE: -7.04 (output score)
I want to know now if it is possible to use the option “-save_attention” to save the alignment between the source and the reference translation (gold) ?