Getting a RNN/LSTM network to return a 2D representation of sentences?

I want to basically introduce non-linearity by using an LSTM network on each of the words in a variable length sentence. So, basically, I want to get a stack of vectors for each sentence. Any ideas on how to do this?