-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'joblib' from 'sklearn.externals' #28
Comments
The same error occurs with me as well. It didn't occur earlier, like 5-10 days back. However, it appeared today, suddenly. |
@preetshah21699 Currently the module is not updated... It's very sad, but a new version is available here : https://github.com/dimitrismistriotis/profanity-check (i use that for solve the issue, very well) |
How we feel about this right now (me + @koti the other contributor) |
How to install this? |
@nitin1901 🥁 🥁 🥁 ... and: https://pypi.org/project/alt-profanity-check/ Drop in replacement which we released just yesterday. For the immediate forked repository, It is easy to install as is with something like this in your requirements.txt:
|
If we have a solution, why isn't it published on pypi.org? |
@preetshah21699 as stated on @dimitrismistriotis comment, the solution is published here: https://pypi.org/project/alt-profanity-check/ |
@koti Yes, I saw it. But it just doesn't make sense to have the same thing under a completely different name. But anyway, thanks. |
A few things here:
We cannot merge on this repository and even if we could this might break work of people who depend on it as-is. About "same thing under a completely different name": it is called forking and there are TONS of forks around, and the name is deliberately not "completely" different, we had the same name prefixed with "alt-".
Welcome. I guess while writing this that I probably overreacted, it took us some hours and learning to do this. |
Thanks @dimitrismistriotis, @koti and all the other contributors for your work, really appreciate that you are still updating and keeping this work alive 👍 |
Hey everyone, we just wanted to update you on this and announce that @dimitrismistriotis and I created an API for the library. In fact, it is a wrap of the alt-profanity-check package you can find here: https://pypi.org/project/alt-profanity-check/. You can find the API here: https://rapidapi.com/mistriotis-mistriotis-default/api/profanity-check1. Feedback, questions and subscriptions are highly appreciated. Please feel free to reach out to both of us for any questions or feedback about the API. |
ah hello, when i try to check if a string is offensive it prints nothings and ends. the exit code is 0. |
@CrashtestEnigma, we need more information on this. What's your input? The library returns 0 for "Not offensive" and 1 for "offensive". How did you try to check the string? Did you use the API we created? |
@koti Yes, I used the API you guys created. I tried to test it exactly how the documentation usage told me to. I used the predict function to test if "Hello" was offensive. My exact code was:
The code snippet returns nothing. Neither 1 nor 0. The exit code is 0. |
@CrashtestEnigma That is a very beginner mistake, as this is not Javascript. |
@BrandonKMLee oh i see. thank you for correcting me, i'm sure i can learn from this. |
I am facing the same issue, Please find the below output.
I changed the import statement in this line
I tried the above solutions and it's not working python 3.9 Package Version boto3 1.19.10 |
@priyabratap this library is deprecated. You could find an active alternative here and here. |
@koti the alternative also was not working. Thanks a lot |
OK |
I'm tying to test the module but it is do not works :/
The text was updated successfully, but these errors were encountered: