text_plain_output_1.png
from keras.preprocessing import text, sequence

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

max_features = 20000
maxlen = 100

train = pd.read_csv('../input/train.csv')
test = pd.read_csv('../input/test.csv')
list_sentences_train = train['comment_text'].fillna('unknown').values
list_classes = ['toxic', 'severe_toxic', 'obscene', 'threat', 'insult', 'identity_hate']
y = train[list_classes].values
list_sentences_test = test['comment_text'].fillna('unknown').values

test = ['This is your last warning. You will be blocked from editing the next time you vandalize a page, as you did with this edit to Geb.  |Parlez ici ']
tokenizer.fit_on_texts(list(test))
test_token = tokenizer.texts_to_sequences(test)
test_2 = sequence.pad_sequences(test_token, maxlen=maxlen)