In the Opennmt-tf, I didn’t find the unk_replace option in the inference part.
So the option (like returning attetion score, beam size) is not already implemented?
This is tracked by this issue:
There is currently a limitation in TensorFlow that prevents returning alignment information when using beam search. A pull request has been open there but interactions with the reviewer has been slower lately.