How to specify sequence length when using "feature-extraction"

I’m getting the following error: IndexError: index out of range in self