Description
Hi everyone, I have a problem regarding custom translation: i have a bilingual word file containing source words and its target translation word. when decoding a source text sentence, i want to use this file to help translate words in the sentence that also appear in my word file into its target translation.
In English-German machine translation, for example:
I want to translate a sentence:
"We are not happy with the decision of Commission."
My trained model would give me this, which is still great:
"Wir sind mit der Entscheidung der Commission nicht zufrieden."
but provided that my word file has src-tgt pair (Commission, Kommission), so i want the translation to be like this:
"Wir sind mit der Entscheidung der Kommission nicht zufrieden."
Does this problem have something to do with oov? Is it possible to train a model that will translate certain words from a sentence in my prefered fashion?
...
Environment information
OS: Ubuntu 14.0
$ pip freeze | grep tensor
mesh-tensorflow==0.0.5
tensor2tensor==1.13.4
tensorboard==1.14.0
tensorflow-estimator==1.14.0
tensorflow-gpu==1.14.0
tensorflow-hub==0.5.0
tensorflow-probability==0.7.0
tensorflow-serving-api-gpu==1.14.0
$ python -V
# python 3.7.3
For bugs: reproduction and error logs
# Steps to reproduce:
...