Natural Language Processing with Classification and Vector Spaces - Week 3 Programming assignment

That probably means you have made what is the most common mistake on that assignment: referencing global variables from the body of your get_country function. It works in the notebook, but it is a bug: the grader passes a different dictionary than word_embeddings as the embeddings argument to get_country.

Here’s a thread which discusses that in slightly more detail.

1 Like