farizrahman4u / seq2seq

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

How to have variable output sequence length #245

Open ems7 opened 6 years ago

ems7 commented 6 years ago

Hi, just wondering if there are plans to implement having variable output sequence lengths. Something like having a third list as input at training time so model.fit(x=data, y=targets, outputlengths=outputlengths) and similarly for prediction. Not sure how difficult this would be to implement given the your current stack, in the mean time I guess I'll just pad my target sequences to all be the same length. Cheers!