To handle sequences of different, I would like to know.
Why do we need padding the sequence the word to the same length?
If the answer is "Yes, you need padding.". Can I set the padding in other indexes? For example, if I have an index word like this:
{0:"<s>,1:"<e>",2:"AAA",3:"BBB",.......,500:"zzz"}
Where <s>
is starting word of the sentence and is the ending word of the sentence.
Can I set the padding flag to the last index?
{0:"<s>,1:"<e>",2:"AAA",3:"BBB",.......,500:"zzz",501:"<pad>"}