NLP - Text Generation
Identify the error in this RNN text generation model code:
```python
model = tf.keras.Sequential([
tf.keras.layers.Embedding(input_dim=5000, output_dim=64),
tf.keras.layers.SimpleRNN(128),
tf.keras.layers.Dense(5000, activation='softmax')
])
model.compile(loss='categorical_crossentropy', optimizer='adam')
```
