Skip to content

analysis with "so" before qualifier in a sentence with negation gives wrong results  #1

@Nek

Description

@Nek

Thanks for picking this project up. It's a good fit for an app prototype I'm building.
Right now I'm playing with the library from Clojure REPL.
Works fine except there are some problems with "so".

moodwiz.core=> (calculate-sentiment "good")
{"negative" 0.0, "neutral" 0.0, "positive" 1.0, "compound" 0.4404}
moodwiz.core=> (calculate-sentiment "so good")
{"negative" 0.0, "neutral" 0.238, "positive" 0.762, "compound" 0.4927}
moodwiz.core=> (calculate-sentiment "I feel good")
{"negative" 0.0, "neutral" 0.256, "positive" 0.744, "compound" 0.4404}
moodwiz.core=> (calculate-sentiment "I feel so good")
{"negative" 0.0, "neutral" 0.385, "positive" 0.615, "compound" 0.4927}
moodwiz.core=> (calculate-sentiment "I don't feel good")
{"negative" 0.546, "neutral" 0.454, "positive" 0.0, "compound" -0.3412}
moodwiz.core=> (calculate-sentiment "I don't feel so good")
{"negative" 0.0, "neutral" 0.445, "positive" 0.555, "compound" 0.5777}

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions