text_html_output_1.png
import pandas as pd
import numpy as np
from itertools import chain
from nltk.tokenize import wordpunct_tokenize
from keras.preprocessing import text, sequence
from keras.layers import Dense, Embedding, Dropout, LSTM, Bidirectional, GlobalMaxPool1D, InputLayer, BatchNormalization, Activation
from keras.models import Sequential
from keras.callbacks import EarlyStopping, ModelCheckpoint
from sklearn.model_selection import train_test_split
from subprocess import call
from sklearn.utils import compute_sample_weight
from sklearn.metrics import confusion_matrix, log_loss
from collections import OrderedDict