farizrahman4u / seq2seq

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

When computing alpha, not supporting mask. #236

Open chenguandan opened 6 years ago

chenguandan commented 6 years ago

In the code, alpha = Activation('softmax')(alpha) This operation does not support mask padding ones. How to alter the code?