Hello,
the graded cell for “def fit_tokenizer(sentences)” is simple but it gives a slightly different output than expected (29731 words instead of the expected 29714):
my code has just 2 lines, tokenizer constructor(with oov_token=), followed by its fit_on_texts(sentences).
What could have possibly gone wrong?
Did you know there is a search function on this platform?
I couldn’t get any hints using the ‘search’ function and that’s the reason for my post.
The assignment is graded and it passed successfully with a full score (20 out of 20 for the graded cell).
Still I want to understand why there’s a difference in the count of words (I am not using num_words parameter in the Tokenizer constructor call as we don’t know what number to use)
Any hints please?
Take a closer look at that screen capture. It’s the exact same question about the exact same exercise. The mentor replied with suggestions, the original poster wrote back that it solved the problem. Are you saying that it’s a coincidence that the value returned, 29731, is the same as that post, but your problem in the code is different? That just seems improbable.