Understanding the effect of num_words of Tokenizer in Keras
The problem is with the way things are documented. Check this link:
https://stackoverflow.com/questions/46202519/keras-tokenizer-num-words-doesnt-seem-to-work