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

Error importing predict #21

Open juancastingo opened 3 years ago

juancastingo commented 3 years ago

from profanity_check import predict Python 3.7.5 (default, Nov 7 2019, 10:50:52) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from profanity_check import predict Traceback (most recent call last): File "", line 1, in File "/home/stingo/.local/lib/python3.7/site-packages/profanity_check/init.py", line 1, in from .profanity_check import predict, predict_prob File "/home/stingo/.local/lib/python3.7/site-packages/profanity_check/profanity_check.py", line 3, in from sklearn.externals import joblib ImportError: cannot import name 'joblib' from 'sklearn.externals' (/home/stingo/.local/lib/python3.7/site-packages/sklearn/externals/init.py)

juancastingo commented 3 years ago

duplicate of 15