Open dtieber opened 5 years ago
To avoid breaking changes, we should document this behaviour.
Did you see the PR by any chance?
Yup I saw it. We will plan a major release with all off-by-one fixes. Right now, this would cause a lot of projects to break.
Seems like the num_words property in text.py is not initialized with the correct length. I found this out because I'm using this value in order to calculate the number of input/output neurons which leads to issues when I'm training the model.
I think num_words should be initialized like this:
num_words = len(self.word_index)
if not set explicitly.