When I have tried to run this code:
model = Sequential()
model.add(Embedding(len(set(text_words)), 100,input_length=8555))
model.compile('rmsprop', 'mse')
output_array = model.predict(b)
I got this error:
ValueError: Error when checking input: expected embedding_1_input to have shape (8555,) but got array with shape (1,)
What is going wrong in this section?
I am using NumPy array data. Variable b
is the NumPy array data in my code.