-
Notifications
You must be signed in to change notification settings - Fork 84
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
Incorrect polarity calculation #21
Comments
Thanks for trying sentimentr. It's hard to tell discuss this without reproducible example. I believe I know where you are getting tripped up but will wait until you make a reproducible example so I can see your process. Please use markdown formatting to display intext and blocks of code so that it's easy to read & grab. |
Not sure if I understand the ask All I am doing is running
Below is what I use to update the polarity table and Valence table.
|
Here are more examples where I am getting a positive score instead of a negative Horrible can't even watch the game and it's football season, this app needs a face lift. Looks like half the channels from basic cable lineup are missing! (tried adding 'looks like' as a de-amp, but getting a duplication error while both the polarity & valence table does not contain it) It crashes every time I use it. They marketed it like it was as good or better then the Netflix app... Please. Don't even bother with this. |
Let's start with this:
These two vectors are not equal in length so R invokes the recycling rule to make the data.frame. IS that really what you want? Also...What is the 4 for? It's use isn't documented so I'm wondering what you are using it for. Realize that negators (
gives:
In your original post you wrote:
|
The sentences you are showing are not surprising to me. Here's a few things to note:
Also realize the The act of making dictionaries is important and the format in sentimentr was designed to be mutable but requires attention to detail. As you go through this process, if you have ideas to make the UX of dictionary updating smoother please share. |
Thank you for the detailed insights
And once again, thanks a lot for building an excellent sentiment analysis tool. |
I will check int this. |
Can you show me the code you tried? It works for me. Here's my code and output:
Output:
|
Finding it strange. Trying the sentence "Crashing tv isn't showing" yields a sentiment score of 0.5
Sentiment for "Crashing TV" yields -0.70
Sentiment for "isn't showing" yields 0
Sentiment for "isn't " yields 0 - This is surprising coz I have "isn't" as negator in my valence table
There were only a couple of additions to the valence table and the polarity table - and none of it should have any impact in the context of this sentence.
Any idea what is wrong ?
sentiment_by("Crashing tv isn't showing", by = NULL, polarity_dt = pk_table,
1: 1 4 NA 0.5
1: 1 2 NA -0.7071068
1: 1 2 NA 0
sentiment_by("isn't", by = NULL, polarity_dt = pk_table,
1: 1 1 NA 0
The text was updated successfully, but these errors were encountered: