-
Notifications
You must be signed in to change notification settings - Fork 40
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
cannot find file sentiment_pipeline.pkl #3
Comments
Hi DonPeregrina, From your traceback error, it seems to me that you cloned the github repo however this is not the proper way of installing the package. What I would do to fix the problem in your case :
4/ At that point the package should be linked to your main Python environment and you should be able to use it Tell me if those steps could fix the issue |
That is awesome Elliot! Thanks a lot There is one remaining question, sorry if this is too obvious but I am new to python, I have that module already installed but I am not sure how to use it, which commands or functions call first etc. Is there any documentation about how to use it? Thabk you so much for your help, this is awesome. |
You're welcome, I'm glad it helped! this is done through a "SentimentClassifier" class, that has a function predict that you use to compute scores. That's pretty much all it does! I suggest you to take a look at the notebook (https://github.com/aylliote/senti-py/blob/master/demo_classifier.ipynb) to see some examples of how it works |
This is just awesome, it works! haha thanks a lot. I really appreciate your help , its really useful , and on a curious note, I noticed this module works better with southamerican phrases, with Mexican connotations it works as well but the model is tuned with south american expressions and phrases haha. Thanks a lot again. |
There are really a lot of modules and packages designed to solve NLP problems, I can not help you on this one it all depends on which tasks you aim at solving, you should look on the internet. (indeed, model was willingly trained on reviews with high bias towards southamerican/argentina sentences, that's what you noticed!) |
Hi Elliot , thanks a lot for your input. Another question regarding your module , I guess you defined the scale for the "Polarity" to be from 0 - 1 , right? Or is the classifer giving results on Subjectivity instead of Polarity? I was asking because I saw that polarity is often scaled from -1 to 1 Thanks a lot man. |
Hi DonPeregrina, Rigorously speaking, the output is the probability that the statement belongs to the class 1 (which in human words correspond to a positive sentiment). That is also known as Polarity indeed. Subjectivity prediction is an other task, that is not tackled by this package. However, you should not wonder too much about the range, this is just a definition. In my case the output is a probability so it makes sense to squash it into the [0,1] interval. If you want it to be scaled between -1 and 1 you can always apply a tranformation to it, with a linear function (lambda x : 2*x - 1) or a more complex transformation (any increasing function that maps the interval [0,1] to [-1, 1]). Kind regards, |
Hello Ayliote , seems very cool project but for whatever reason I cannot seem to find the file named
sentiment_pipeline.pkl
Here is the full error
No such file or directory: 'C:\Users\L03121890\Documents\Pyton\example\senti-py-master\classifier/model/sentiment_pipeline.pkl
Could you tell me where can I find this file?
Thanks a lot.
The text was updated successfully, but these errors were encountered: