text_plain_output_1.png
from sklearn.preprocessing import LabelEncoder

from tensorflow.keras.utils import to_categorical

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)

from sklearn.preprocessing import LabelEncoder
from tensorflow.keras.utils import to_categorical
encoder = LabelEncoder()
y_encoder = encoder.fit_transform(dataset['Emotion'])
y = to_categorical(y_encoder)
y[0]