Skip to content

Both magnitude and score are important in analyzeSentiment API #2

@CloudApiStudy

Description

@CloudApiStudy

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 (webapp/app_folder/routes.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions