profanity-check
profanity-check copied to clipboard
A fast, robust Python library to check for offensive language in strings.
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...
This PR updates the joblib files. They have been updated by loading them using joblib in Python3.7, and then dumping them using joblib. This prevents the following error during operation:...
I'm tying to test the module but it is do not works :/ 
`Collecting profanity-check Downloading profanity_check-1.0.3-py3-none-any.whl (2.4 MB) |████████████████████████████████| 2.4 MB 906 kB/s Collecting scikit-learn>=0.20.2 Using cached scikit-learn-1.0.tar.gz (7.8 MB) Installing build dependencies ... \` os: macos python: 3.10 pip: 21.2.4
Update on koti's PR to retrain the model with scikit-learn 0.23.2 to hide warnings (Trying to unpickle from version 0.23.1 when using version 0.23.2. This might lead to breaking code...
Make a list that would auto-trigger a swear alert and make it customizable.
Traceback (most recent call last): File "D:/Work/Tests-Tutorials/german/TEIST.py", line 1, in from profanity_check import predict, predict_prob File "C:\Users\fasol\AppData\Local\Programs\Python\Python38\lib\site-packages\profanity_check\__init__.py", line 1, in from .profanity_check import predict, predict_prob File "C:\Users\fasol\AppData\Local\Programs\Python\Python38\lib\site-packages\profanity_check\profanity_check.py", line 3, in...
For some reason, there was an ```ImportError``` with the ```joblib``` module because of the outdated version. Also, new updates for the other modules and a virtualenv.
``` Traceback (most recent call last): File "C:/Users/conta/PycharmProjects/Discord/bot.py", line 11, in from profanity_check import predict, predict_prob File "C:\Users\conta\anaconda3\envs\Discordbot\lib\site-packages\profanity_check\__init__.py", line 1, in from .profanity_check import predict, predict_prob File "C:\Users\conta\anaconda3\envs\Discordbot\lib\site-packages\profanity_check\profanity_check.py", line 3,...
The sklearn model used in this package was made for sklearn version 0.20.2. The latest stable version of sklearn is 0.23.2, and it is not compatible with the model from...