NLTK quiz Question no. 3

How does the answer to the third question is 6 , I am getting the answer as 5 . Below is the code I used.

def myTokenzier(sentence):
words=tokenizer.tokenize(sentence.lower())
words=[w for w in words if w not in sw]
return words

cv=CountVectorizer(tokenizer=myTokenzier,ngram_range=(3,3))
vc=cv.fit_transform([’#Coding Blocks is a great source to learn @machine_learning ']).toarray()
print(len(vc[0]))
print(cv.vocabulary_)

Hey Anshu,
Yes you are correct the answer is 5…

1 Like

Could you please update the answer.

When I check the correct answer was showing as 5 only…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.