tensorflow / nmt

TensorFlow Neural Machine Translation Tutorial
Apache License 2.0
6.35k stars 1.96k forks source link

NMT, What if we do not pass input for decoder? #446

Closed guotong1988 closed 4 years ago

guotong1988 commented 4 years ago

For transformer-based neural machine translation (NMT), take English-Chinese for example, we pass English for encoder and use decoder input(Chinese) attend to encoder output, then final output.

What if we do not pass input for decoder and consider it as a 'memory' model for translation. Is it possible and what will happen?

It seems decoder could be removed and there only exist encoder. Could I do translation task like text generation? See: https://github.com/salesforce/ctrl/blob/master/generation.py https://einstein.ai/presentations/ctrl.pdf

Thank you!

guotong1988 commented 4 years ago

https://datascience.stackexchange.com/questions/60258/nmt-what-if-we-do-not-pass-input-for-decoder