text_plain_output_1.png
from keras.preprocessing.text import one_hot

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

dataset = pd.read_csv('../input/emotions-in-text/Emotion_final.csv')
dataset.sample(5)

vocab_size = 21000
encoded_docs = [one_hot(d, vocab_size) for d in dataset['Text']]
print(encoded_docs[0])