C1_W3_Assignment from nlp course

exactly this help me to solve my issue too.

I used the embeddings within the get_country, i even rebooted but nothing solve the problem. I found another way to resolve this is by adding a round function for the variable ‘similarity’ to brute force another digit on the mantissa, which matched the given answer

I can’t get points from the ex-3 and 4.
I am not using word_…
I don’t get why…

Edit… global variables s…k. There was one left… Thanks for the advice. :slight_smile:

I did the same. Restart from scratch and still have issue. In addition some cells are not fully downloaded… For example in cell 14, get_accuracy function as shown below. The comment ended unexpectedly and there should be a “Output” section that are missing. Please note this is extracted from a new file before any edit.

'''
Input:
    word_embeddings: a dictionary where the key is a word and the value is its embedding
    data: a pandas data frame as

'''

Hi @ivanpoon,

Is this something you still need help with ?

Best,
Mubsi

Hi. I am facing a lot of issue in this C3 graded output. Have replaced the word_embeddings with embeddings but still getting embeddings as undefined. Please fix my issue. Will be grateful. Also, somehow getting not egypt but Tunsing. Please have a look at my pdf output. Thanks
C3 Graded Output.pdf (3.9 MB)

A simple method to test if your code is working correctly, go to the kernel and give
“Restart and clear output”. Then run the first codes needed to import the library and the dataset.

Then run the graded function block and the code block of the unit test. If it passes, your code is good to go and doesn’t depend on global variables.

Hi, I tried that but now the error comes the " name ‘embeddings’ is not defined".
I am facing this issue from last 2 weeks. I have paid for this course and my time is running. Please someone help me with this graded block 3 and 4. I will be grateful.

For anyone who finds this thread later, here is a more concise description of the error.