PHP Sentiment Analyzer
PHP Sentiment Analyzer is a lexicon and rule-based sentiment analysis tool that is used to understand sentiments in a sentence using VADER (Valence Aware Dictionary and sentiment Reasoner).
Features
Text
Emoticon
Emoji
Requirements
PHP 5.5 and above
Steps:
Install
Composer
Run the following to include this via Composer
Simple Usage
Simple Outputs
Advanced Usage
You can now dynamically update the VADER (Valence) lexicon on the fly for words that are not in the dictionary. See the Example below:
Advanced Outputs
Stargazers
Forkers
License
This package is licensed under the MIT license.
Reference
Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. Eighth International Conference on Weblogs and Social Media (ICWSM-14). Ann Arbor, MI, June 2014.
Last updated
Was this helpful?