I keep getting this error:
This is my given code for sequencing:
sequences = tokenizer.texts_to_sequences(sentences)
I keep getting this error:
Hello @Skanda_Vyas ,
Send me your notebook via dm such that I can check where it went wrong. By clicking on the profile picture, you will see an option to message. There you can attach your notebook. Then we can discuss the issues here, under the topic you created.
With regards,
Nilosree Sengupta
Hello @Skanda_Vyas ,
I have gone through your notebook.
Issue is not actually in the cell where you got the error. Issue is in a previous cell.
Under the function → def fit_tokenizer(train_sentences, oov_token),
You have written : tokenizer = Tokenizer(train_sentences,oov_token=oov_token)
It’s given in the hint : You only need to Instantiate the Tokenizer class, passing in the correct values for oov_token here.
So, just Remove train_sentences
from here. This will fix it.
With regards,
Nilosree Sengupta
Thank you, It worked