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 know it probably does not exist just like that, but hey.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With