Skip to content
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

vaderSentiment data output in a different order than specified in the docs #129

Open
timsntech opened this issue Nov 15, 2021 · 0 comments

Comments

@timsntech
Copy link

timsntech commented Nov 15, 2021

Hey there,

just trying out vaderSentiment for emotional analysis and everything works fine from a technical point of view.
Only thing that's kind of confusing is that the output we get from vs = analyzer.polarity_scores() is different from what is stated in the README.md.

The README at the following section https://github.com/cjhutto/vaderSentiment#code-examples shows f.e. this result:
{'pos': 0.746, 'compound': 0.8316, 'neu': 0.254, 'neg': 0.0},
while when running it locally on my jupyter notebook the output looks like that:
{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}

image

Expected behaviour:
Get the values in the same order as in vaderSentiment's README.md

Actual behaviour:
Printing out the result of vs = analyzer.polarity_scores() shows a different order (see example above).

Just want to make sure I'm not mixing up something here.
For my point of view it looks like as if the documentation seems not up to date here .. but maybe I'm missing something?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant