Here is my code for an RNN classifier 2 in case you have sentiment classes (e.g., positive, negative neutral) and not a numerical value. It’s a basic implementation of a many-to-one RNN network model. The code looks only a bit cluttered since I wanted to parameterize the number or RNN layers, linear layers, what activation and whether dropout to use, etc. Maybe this gives you some ideas how to proceed.