---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-37-cd40edd34d98> in <module>
1 # BEGIN UNIT TEST
----> 2 avg = sentence_to_avg("Morrocan couscous is my favorite dish", word_to_vec_map)
3 print("avg = \n", avg)
4
5 def sentence_to_avg_test(target):
<ipython-input-36-fa085dac459b> in sentence_to_avg(sentence, word_to_vec_map)
58 #if w in word_to_vec_map
59 for w in word_to_vec_map[w]:
---> 60 total += word_to_vec_map[w]
61 avg = total / len(words)
62
KeyError: 0.6081
Can someone tell me why I am getting this error?Thank You