We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FastText model downloading fails quite often, especially when using the "large" model.
A workaround is to pre-download the model with wget:
filters_dir="/builds/worker/.local/lib/python3.10/site-packages/opuscleaner/filters" wget -O "${filters_dir}/large.bin" https://dl.fbaipublicfiles.com/fasttext/supervised-models/lid.176.bin
I think requests.get is not robust enough without retries, so it just fails periodically and wget does a lot more to ensure reliable downloading.
requests.get
The text was updated successfully, but these errors were encountered:
No branches or pull requests
FastText model downloading fails quite often, especially when using the "large" model.
A workaround is to pre-download the model with wget:
I think
requests.get
is not robust enough without retries, so it just fails periodically and wget does a lot more to ensure reliable downloading.The text was updated successfully, but these errors were encountered: