Exercise 7: get_document_embedding wrong result

get_document embedding is giving the wrong result than as expected despite running with no error.
can anyone help?

The asking for help is vague. The problem is probably in the en_embeddings dictionary and how you check the existence of a key on it (a word). You can search about it in google.

No ive used a global variable inside my function. Ive figured it out.
Btw thanks for you words.

1 Like