text_plain_output_1.png
from keras.layers import Bidirectional

from keras.layers import Dense

from keras.layers import Dense,Dropout,Embedding,LSTM

from keras.layers import Embedding

from keras.layers import LSTM

from keras.models import Sequential

from keras.models import Sequential

from tensorflow.keras.layers import Dense, Embedding

from tensorflow.keras.layers import LSTM

from tensorflow.keras.models import Sequential

import keras

model = Sequential()
inputs = keras.Input(shape=(None,), dtype='int32')
model.add(inputs)
model.add(Embedding(50000, 128))
model.add(Bidirectional(LSTM(64, return_sequences=True)))
model.add(Bidirectional(LSTM(64)))
model.add(Dense(5, activation='softmax'))
model.summary()