vzhou842 / profanity-check

A fast, robust Python library to check for offensive language in strings.
https://pypi.org/project/profanity-check
MIT License
633 stars 118 forks source link

Support for Python >=3.7 and Scikit-Learn>=1.2 #44

Open EthanJamesLew opened 1 year ago

EthanJamesLew commented 1 year ago

While profanity-check has proven to be a useful model, there seems to be difficulties getting it to work with Python versions above 3.7.0. This issue could be addressed by switching to new joblib files or exploring alternative serialized forms that are more future-proof and backwards compatible. I am willing to help with a fix, but I acknowledge that upgrading models in scikit can be tricky.

Also, is this repository currently maintained?

BradKML commented 1 year ago

Very likely there is only active forks since updates stopped 2020.

nsde commented 1 year ago

Any updates on this? Anyone willing to fork

EthanJamesLew commented 1 year ago

@nsde I have not forked this as my use case for it didn't work out. It should be pretty straightforward to load up the model in the old python and serialize it out in a way that can be loaded in a more recent model version.

suvanbalu commented 1 year ago
image

While checking the documentation of sklearn, one of the errors I got was that they depreciated joblib, instead, we can try installing joblib directly from pip.

Can someone see to this issue.

dimitrismistriotis commented 5 months ago

I have seen it in other issues, we (me + friend) have forked it here following Scikit Learn's releases: https://github.com/dimitrismistriotis/alt-profanity-check

This will cover the Python version issue as well.

Apologies to the original author as I am creating Merge Requests on that repo and reach this one as it is the default.