Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Sentiment Analysis Library [closed]

I'm looking for a C++ sentiment analysis library that I could use in my own application. Something that would take a text written by a human as an argument and return information on its mood (positive, negative, neutral, angry, happy, ...). Any ideas?

A few remarks:

  • I'm not looking for a library with "just" NLP tools (as text tokenization, PoS tagging etc.), but really something that does sentiment analysis / opinion mining / mood analysis. Of course an NLP library with sentiment analysis tool is great.
  • Something very simple would be ok (e.g. just returning +1/-1/0)
  • I don't care which underlying technique it may use (dictionaries, bayesian stuffs, SVMs, rule-based...)
  • C++ only!

I know it probably does not exist just like that, but hey.

like image 959
Arthur Avatar asked Feb 26 '12 19:02

Arthur


People also ask

What is the problem with sentiment analysis?

Sentiment or emotion analysis can be difficult in natural language processing simply because machines have to be trained to analyze and understand emotions as a human brain does. This is in addition to understanding the nuances of different languages.

What are the libraries used in sentiment analysis?

Many open-source sentiment analysis Python libraries , such as scikit-learn, spaCy,or NLTK. VADER (Valence Aware Dictionary for Sentiment Reasoning) in NLTK and pandas in scikit-learn are built particularly for sentiment analysis and can be a great help.

Is sentiment analysis solved?

Assessing and probing sentiment classification. Neural methods for SA have led to quantitative improvements over previous approaches, but these advances are not always accompanied with a thorough analysis of the qualitative differences.


1 Answers

I'd suggest writing your own. You can capture 80% of mood correctly with a simple filter for positive and negative sentiment words, and you can scale your sign based on some common modal words and punctuation. If you want to squeeze juice out of that remaining 20% of ambiguity and you don't want to train your own SVM or whatever, I'd suggest finding papers at op.to/goog/scholar+ some of those papers will have authors who have written C++ libs and talking about where you can find / download them.

Also see this SO post among many others for more ideas.

like image 163
Cris Stringfellow Avatar answered Oct 11 '22 08:10

Cris Stringfellow