profanity-check icon indicating copy to clipboard operation
profanity-check copied to clipboard

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

Open EthanJamesLew opened this issue 2 years ago • 5 comments

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?

EthanJamesLew avatar May 04 '23 16:05 EthanJamesLew

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

BradKML avatar May 15 '23 06:05 BradKML

Any updates on this? Anyone willing to fork

nsde avatar Aug 30 '23 19:08 nsde

@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.

EthanJamesLew avatar Sep 01 '23 15:09 EthanJamesLew

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.

suvanbalu avatar Sep 21 '23 13:09 suvanbalu

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.

dimitrismistriotis avatar Jun 05 '24 07:06 dimitrismistriotis