Corrected all errors I found in codes but still it shows this
Please guide me to understand my mistake… Thank you
Corrected all errors I found in codes but still it shows this
Please guide me to understand my mistake… Thank you
Dear @HridayKumar,
Welcome to the Community!
get_country function does not accept a parameter named word_embeddings. Kindly check the signature of get_country function.
–
Keep Learning AI with DeepLearning.AI - Girijesh
hi @HridayKumar
check if your
loop through all words in the embeddings dictionary is your the right keys function because here is where all words are embedded into a dictionary and it need to recalled by keys function
For example(not totally related to the exercise you are working but a hint) if I need to embedded all the sentences into a dictionary, I would use the key functions sentence_embeddings.keys( )
I have made changes to code as suggested but error still remains…
file removed as sharing files containing codes on public post is against community guidelines, if a mentor wants to look at your code they will ask you to send them codes by DM
Kindly avoid posting codes or assignment file on public post thread. Click on my name and then just send screenshot of grade function cels(cells where you wrote codes) until you got error.
Understood…thank you for informing me
you have the same mistake as I was suspecting, your key function name is incorrect.
So read my previous comment here and do the correction. it shouldn’t be just embedding.keys()