Hi Keith @KeithYin,
thanks a lot for spotting that! I’ve updated the example 
Seems like the tedious thing with all this padding stuff is sorting the input vectors by length, before they go into the rnn, and then mapping the output back to the original indexing?
I’ll keep adding to the example 
Cheers,
Aj