def get_lstm_model(): input = Input(shape=(maxlen, 128)) output = Bidirectional(LSTM(64, return_sequences=True))(input) return Model(input, output)