Open harshitaggarwal01 opened 3 years ago
What is answer for this problem?
Donot encode the labels i.e. skip the previous line of code encoding = { 'joy': 0, 'sadness': 1, 'fear': 2, 'anger': 3, 'neutral': 4 }
y_train = [encoding[x] for x in y_train] y_test = [encoding[x] for x in y_test]
In the preprocessing block in bert.ipynb , the following error is shown:
(I have also tried in google colab but it gives the same error)
TypeError Traceback (most recent call last)