This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Useless warning message on load_model #1067
Comments
@Celebio can you publish new version on pypi? My package denend from fasttext, but I can't publish him:
|
Open
@Celebio it would be much appreciated to have a new release with this warning removed |
@noelslice please write the same in: #1135 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the Python bindings of version 0.9.2, every time I call
load_model
- which in my understanding is the correct way to load saved models - fastText prints this message on stderr:It's defined on this line
I understand that sometimes it's useful to explain API changes to users, especially when deprecated features are being accessed and better ways exist. But this seems a bit excessive, since there is no other way of loading the model so no easy way to avoid the message.
I silenced the warning by monkeypatching
eprint
like this:This is related to #909 which reported a problem (since fixed) that the warning message was printed as a blank line.
The text was updated successfully, but these errors were encountered: