-
-
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
Error "mismatched vocab_size" loading supervised model with FastText.load_fasttext_format #1498
Comments
@bittlingmayer Gensim doesn't support supervised version of fastText as of now. |
@prakhar2b Thank you, ideally the error message should say that. |
Hi @menshikh-iv, how can I start solving this? |
Hi @ibrahimsharaf, you need to add information in an exception about unsupervised fasttext. |
@menshikh-iv, so I should raise an exception inside |
|
Working on it! BTW: the prefix for the labels is fully configurable in fastText ( |
Thanks for the information @ElSaico, I did not know about it. |
The issue is with the latest code in the
develop
branch, which is the only way to load a.bin
without a.vec
, and thus the only way to load a supervised model, becausesupervised
does not output a.vec
.Steps/Code/Corpus to Reproduce
Then, in Python:
Expected Results
The model loads.
Actual Results
Error:
Of course,
__label__bad
is one of the labels in the model.Versions
The text was updated successfully, but these errors were encountered: