vzhou842 / profanity-check

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

ImportError: cannot import name 'joblib' #22

Open reed-sandberg opened 3 years ago

reed-sandberg commented 3 years ago

The following error occurs when:

from profanity_check import predict, predict_prob

from sklearn.externals import joblib ImportError: cannot import name 'joblib'

The latest sklearn package doesn't export this symbol. Also a minor or patch version upgrade of scikit-learn gives the following warning, so this should be locked at scikit-learn-0.20.2:

sklearn/base.py:253: UserWarning: Trying to unpickle estimator CountVectorizer from version 0.20.2 when using version 0.20.3. This might lead to breaking code or invalid results. Use at your own risk.
  UserWarning)
kennell commented 2 years ago

There is a somewhat actively maintained fork that fixes this issue, along with some other improvements and updates.

https://gitlab.com/dimitrios/alt-profanity-check

JoshuaMathias commented 1 year ago

I see that GitHub is now used for the fork: https://github.com/dimitrismistriotis/alt-profanity-check