You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
In the method texts_to_sequences_generator (of the Tokenizer), the num_words check is based on the word's index. I understand that this check is fast, but wouldn't it be a problem if the ordering is changed (ie, if it isn't based on frequency anymore) ?
In my current project, we defined an external index/word mapping, as our dataset often change but not our vocabulary. So the tokens won't always be sorted in order of importance.
For the record, I don't need this particular method (yet, I think...) but I found the assumption on the data in the check a little bit "hard".
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the method
texts_to_sequences_generator
(of theTokenizer
), thenum_words
check is based on the word's index. I understand that this check is fast, but wouldn't it be a problem if the ordering is changed (ie, if it isn't based on frequency anymore) ?keras-preprocessing/keras_preprocessing/text.py
Lines 333 to 340 in 5949df1
The text was updated successfully, but these errors were encountered: