It's about a question related to LSTM

I met with this question at StackOverflow please help out.
[python - Im trying to improve one hot encode to the input of a LSTM Neural Network and i get errors about the shape of the input array - Stack Overflow]
I also want to know the cause of error