text_plain_output_2.png text_plain_output_1.png
from numpy.random import seed

from tensorflow import set_random_seed

import warnings

from keras.models import Sequential
from keras.layers import Embedding, Dense, Dropout, LSTM
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
import keras.utils as ku
from keras.callbacks import EarlyStopping
from tensorflow import set_random_seed
from numpy.random import seed
set_random_seed(2)
seed(1)
import string
import os
import warnings
warnings.filterwarnings('ignore')
warnings.simplefilter(action='ignore', category=FutureWarning)