Keras preprocessing text install pip. layers import GlobalMaxPooling1D from keras.