NLP - Text Generation
Given this code snippet for training an RNN text generator, what will be the shape of the input data
X if the vocabulary size is 5000, sequence length is 20, and batch size is 32?model = Sequential() model.add(Embedding(input_dim=5000, output_dim=50, input_length=20)) model.add(SimpleRNN(100)) model.add(Dense(5000, activation='softmax')) X = np.random.randint(0, 5000, (32, 20))
