NLP - Sequence Models for NLP
Find the bug in this Bidirectional LSTM code snippet:
from tensorflow.keras.layers import Bidirectional, LSTM, Dense, Input
from tensorflow.keras.models import Model
inputs = Input(shape=(5, 10))
lstm = Bidirectional(LSTM(20, return_sequences=True))(inputs)
dense = Dense(1)(lstm)
model = Model(inputs, dense)
model.compile('adam', 'binary_crossentropy')