Code Monkey home page Code Monkey logo

Comments (4)

Ghostbird avatar Ghostbird commented on August 28, 2024 1

I don't know about any other systems that can guess sentiment that are more accurate than AFINN. I think AFINN is generally good enough, but it depends on what you want.
Twitter uses AFINN for trend analysis for example. They know it's sometimes wrong, however even real humans will sometimes mistake the sentiment of a tweet. For Twitter it's more important that it can analyse a lot of tweets quickly, than that it's 100% accurate.
So if you're going to do a lot of analysis, and average the results, the occasional error is not important. If you need high accuracy for a single text, you'll need something else, but I'm not sure wether it exists already, or you'll have to do the research yourself.
Remember, even if you've got a perfect program, in some cases it is impossible to tell if a message was meant sarcastically or as a joke. The Python implementation of AFINN does contain additional support for emoticons.

from sentiment.

thisandagain avatar thisandagain commented on August 28, 2024 1

Thanks for your help with this @Ghostbird

--

@bansalvks If you are interested in Sentiment Analysis algorithms that properly account for part of speech (POS) I recommend you take a look at some of the foundational research on the subject. AFINN (like nearly all algorithms which form generalizations about natural phenomena) is a heuristic and does not account for negation and many other nuances of human language. Here are a few to get you started:

Opinion Mining and Sentiment Analysis - http://dl.acm.org/citation.cfm?id=1454712
Sentiment analysis of Twitter Data - http://dl.acm.org/citation.cfm?id=2021114

from sentiment.

Ghostbird avatar Ghostbird commented on August 28, 2024

Not a bug, the result you receive is a perfectly valid AFINN-165 score. Did you look at the paper that this tool is based on?
You expect the software to actually understand human sentiment, which is not what AFINN does. AFINN is a way to guess the sentiment very quickly, in some cases it just guesses wrong.
For your example you will need a much more complex algorithm, which will most likely be slower but make fewer mistakes.

from sentiment.

bansalvks avatar bansalvks commented on August 28, 2024

@Ghostbird Many thanks for replying. I understood what you said and I agree that you are completely right. Could you please guide me in the direction where I could find a solution for my problem, which is to guess the sentiment of the statement (+,-)

from sentiment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.