When I submit my assignment for week 2 Emojify I get the following error in the grader output:
Cell #22. Can’t compile the student’s code. Error: KeyError(‘funny’,)
I looked over the code and it seems to be in cell 22 but this is not my code. Can someone help me?
Sample of cell 22
X1 = np.array([“funny lol”, “lets play baseball”, “food is ready for you”])
X1_indices = sentences_to_indices(X1, word_to_index, max_len=5)
print(“X1 =”, X1)
print(“X1_indices =\n”, X1_indices)