farizrahman4u / seq2seq

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

What is the right input-output data structure that AttentionSeq2Seq wants? #241

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello, I'm trying to fit the AttentionSeq2Seq but I have problems with shape. What is the correct shape for training this model? Do i have to pass an array with encoder-input , decoder-input and another array with decoder-output like :
https://blog.keras.io/a-ten-minute-introduction-to-sequence-to-sequence-learning-in-keras.html

Thank you.

joewandy commented 6 years ago

Any reply to this?

phdowling commented 6 years ago

Did you try anything? Do you have some code to share and your error message? In principle, AttentionSeq2Seq takes the same input as any other Seq2Seq model.

See some usage here: https://github.com/farizrahman4u/seq2seq/blob/master/tests/test.py