farizrahman4u / seq2seq

Sequence to Sequence Learning with Keras
GNU General Public License v2.0
3.17k stars 845 forks source link

How to incorporate the copy mechanism in seq2seq generation? #218

Open zhhongzhi opened 6 years ago

zhhongzhi commented 6 years ago

image In some seq2seq problems, copy mechanism is involved to enable the model generate words by copying from the input sequence, such as

I have no idea how to merge the weights from traditional seq output and the weights from the copy mechanism. Any idea or suggestion on how to implement the model in keras is welcomed.

NidhiRustagi commented 6 years ago

Hi! Did you get any pointers on how to resolve this?