I am currently enrolled in NLP specialization and as part of the coursework i submitted the vector space models week 3 programming assignment. Test 3 and 4 were incorrectly evaluated. When I executed my code, i can see that all tests passed but when i submit my code for evaluation, it is failing to identify that the tests have passed. This is the grader output (‘There was a problem grading your submission. Check stderr for more details.’)
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
This helped fix the error, thank you!!
1 Like