Skip to content

Sentiment Analysis - Error on composed words #3

@alex-lairan

Description

@alex-lairan

Hi,

I use sentiment analysis for testing purposes, and I found something with composed words.

I have this code :

require "cadmium"

sentiment = Cadmium.sentiment
pp sentiment.analyze "I realy don't like mosquitoes"
pp "I realy don't like mosquitoes".is_negative?

The result is :

{score: 2,
 comparative: 0,
 tokens: ["I", "realy", "do", "n't", "like", "moskitoes"],
 words: ["like"],
 positive: ["like"],
 negative: []}
false

Here, the don't is not followed.
I know is a bad English, but it's something you can found on twitter.

I don't know if I'm using it in a wrong way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions