-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unexpected senitment classification on idioms #2003
Comments
Indeed interesting - sentiments change depending on punctuation in my case so it might be due to tokenization: Here's also a viszualization from with the help from the solution of issue GH-1504, which shows that more contributes significantly to the negative result: Regarding your question to produce a sentiment score in range -1 and 1, what about writing a wrapper function assigning a negative sign for negative predictions? |
Thanks for the feedback! It seems to me that the only positive sentence "could n't agree more ." have probability 0.5057, which is negative with probability 0.4943. So it doesn't work so well for all four cases (not giving positive with high confidence). My feeling on the reason is either
As to the score, I'd like to get a sentiment intensity score. For example, a sentence with score -0.9 is more negative than another one with score -0.3. However, the number in the outputting label [POSITIVE (0.5057)] is the confidence level. |
Agree to your first point, there might be not enough data for the standalone sentence "couldn't agree more" as a positive review. However I expect that the context of that phrase might be missing (or indeed negative) in the training data, for instance "couldn't agree more that this movie was bad" is obviously negative and the term "couldn't agree more" is only emphasizing the true opinion of the review. Regarding your function - we're currently not supporting such a model, you might wanna try to train your own model with our dataset SENTEVAL_SST_GRANULAR which support at least 5 classes of sentiment. If you have a good dataset in mind which outputs the intensity of sentiments, feel free to open another issue for that. |
Another option would be to train a |
Thanks for the suggestions! I'll try them out |
Hi,
I applied the pre-trained flair sentiment classifier on idioms, such as 'Couldn't agree more', and it gives a negative with probability 0.8243. But I believe the sentence should be positive from my feeling. Is there any reason for this?
By the way, is that possible to produce a sentiment score (in range -1 and 1) using flair?
Many thanks!
The text was updated successfully, but these errors were encountered: