Emojify - KeyError (‘funny’,)

From comments earlier in this thread, a problem in the sentences_to_indices() function comes in the code you implement below this comment (for the ‘if’ statement within the second for-loop):

’ # if w exists in the word_to_index dictionary