C3W1 Practice Assignment - missing "cats" in index

Link

I was just wondering if there was an error in the non-graded assignment as I ran through the training_set and created a vocab with each word and associated index but when I attempt to pad the sequence it’s erroring out on me saying i don’t have an index for “cats”. I have “cat” not “cats” and didn’t see this in the original corpus. Not sure if I missed something.

Sorry, link doesn’t work but it’s easy enough to find in the Coursera shell.

hi @David_Boudia

Can you share a screenshot of the error you are encountering.

Just make sure not to post codes here on public post as it’s against community guidelines.

Regards
DP

Thanks Deepti!

I can’t really post a screenshot without sharing my code. Not sure why I couldn’t post my code since it’s just a practice (ungraded assignment) and people can choose to ignore it if they don’t want to see how I coded. Anyway, I get a KeyError (from using the vocab_dict dictionary) on the word “cats”.


image

you just posted the error and deleted the comment. Yes sharing codes is against community guidelines, so post only error screenshot as everybody does. Also can you confirm if you are working on updated lab assignment. you can click on :question: and check log to know if you are working on the latest version of assignment.