text_plain_output_1.png
from tensorflow.keras.layers import Conv1D, MaxPooling1D, GlobalMaxPooling1D, GlobalAveragePooling1D

from tensorflow.keras.layers import Dense, Input, Activation, Embedding, Dropout

embedding_dim = 100
model = Sequential([Embedding(max_features + 1, embedding_dim), Dropout(0.25), Conv1D(128, 7, padding='valid', activation='relu', strides=3), GlobalAveragePooling1D(), Dropout(0.25), Dense(128, activation='relu'), Dense(3, activation='softmax')])
model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['acc'])
model.summary()