Adding custom bilingual dictionaries

Hi,

Is there a way to add custom bilingual dictionaries which are not automatically generated from the training set?

I am using the Chinese to English language pair and there are a lot of unknown Chinese words like names, locations, etc. that are in English translated into Pinyin for example. The -replace_unk parameter is not really an option here.

Using -phrase_table during translation might be an option (http://opennmt.net/Advanced/).

1 Like

Yup -phrase_table should work. Note though that is doesn’t yet support multi-word phrases.