-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bucket Argument in fasttext not working as expected ? #1765
Comments
Thanks for report @saroufimc1, I went through code with debugger and found that "suspicious resize" of @manneshiva please look more closely (and fix if this a bug) |
@menshikh-iv My code hasn't been merged yet, so I doubt @saroufimc1 used my code (unless he installed Gensim from my branch). The exact same problem appears to be here: |
Confirmed that this is a bug caused by incorrect setting of |
Hi, For the fasttext native from gensim:
My understanding is that according to the hashing trick, if bucket is < total # of subwords, there will be collisions and some subwords will be mapped to the same integers. Am I wrong?
However, it is not what I see on a toy example:
Expected Results
Dictionary with ngrams and their mappings to integers between 0 and 19 ( buckets = 20)
Actual Results
Dictionary with ngrams and their mappings to integers between 0 and 55 ( number of ngrams is 56 here)
Versions
The text was updated successfully, but these errors were encountered: