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

Both magnitude and score are important in analyzeSentiment API #1

Open
CloudApiStudy opened this issue Aug 16, 2020 · 0 comments
Open

Comments

@CloudApiStudy
Copy link

CloudApiStudy commented Aug 16, 2020

Hi,

I come from a research team which works on bugs in real-world applications.

I want to make a report about a potential functionality improvement in your project.

In file (sentiment_analyzer.py), you call analyzeSentiment API to judge the sentiment of text/document. However, magnitude is also an important metric: it reveals how strong the emotion is, while score reveals whether the emotion is positive/negative. When the magnitude is small, the emotion should be neutral even if |score| > 0.2. More details could be found in the official document.

Perhaps someone might be able to confirm if these seem reasonable. Also, if so, the fix seems like it would be pretty straightforward, and I’m happy to create a pull request if that will be helpful.

If you are not offended by it, we may include your response as a percentage number (e.g. xx% of applications faces xx problem, and xx% of them confirms it) in our research paper.

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