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 Mar 19, 2024. It is now read-only.
I also came across this issue. It was particularly annoying, since it would bubble an empty line (instead of the warning) to stderr every time I'd load the model. For this particular case, I had to apply the model across rows of a dask dataframe, and it can't be serialized, so I have that same function also load the model. This led to a bunch of empty lines being bubbled up to stderr.
To hack around it, I just did the following:
importfasttextfasttext.FastText.eprint=print
Then I was able to see the print statement. From there, silencing the statement was simple:
The python bindings don't seem to have a way to run in silent or quiet mode. Simply loading a model prints a blank line to the screen.
For example, this simple script does nothing but load a model:
The script itself does not print anything to the console, but
load_model
prints a blank line:$ ./test_fasttext.py $
Python version 3.7.4 with fasttext version 0.9.1 on Linux.
The text was updated successfully, but these errors were encountered: