vzhou842 / profanity-check

A fast, robust Python library to check for offensive language in strings.

Home Page:https://pypi.org/project/profanity-check

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

EthanJamesLew opened this issue · 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?

commented

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

Any updates on this? Anyone willing to fork

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

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.

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.