BoW vectors – quizz

Hey there,

I’m doing the quizz on the Bag of Words model (https://www.codecademy.com/courses/natural-language-processing/quizzes/bag-of-words-language-model), and there’s a question I can’t get right, even though I thought I had quite nailed vectors… Here it is:

I wouldn’t say any of these answers are correct. Given the features dictionary

vocabulary_dictionary = {"how": 0, "much": 1, "wood": 2, "would": 3, "a": 4, "woodchuck": 5, "chuck": 6, "if": 7, "could": 8}

I would expect the vector for

new_text = "Would a woodchuck chuck much wood if a woodchuck could?"

to be 0, 1, 1, 1, 2, 2, 1, 1, 1

But, as you can see, there’s no such option, and I really cannot understand any of these options.

Thanks!

So, it says this is the correct answer:

What I am missing? Those three zeros at the beginning don’t seem to make any sense (well, the first one does)… :confounded:

@margaridaassis,

This is actually correct, and you are not crazy! I meant to submit this in a bug report when I took the course, but totally forgot. I remember it really bugged me as well, to try and figure out which one of the four wrong answers was considered “right.”

1 Like

Awwwwww, cool!!
Thanks again, @el_cocodrilo! I’m gonna report this. :slight_smile: