Skip to main content

VADER Sentiment Analysis. VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media, and works well on texts from other domains.

Project description

VADER Sentiment Analysis Multilanguage

VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media. It is fully open-sourced under the [MIT License] (we sincerely appreciate all attributions and readily accept most contributions, but please don't hold us liable).

This version integrates the Google Translate API through the translatte Python library. It requires an active Internet connection in order to work.

Installation

pip install vader-multi

class vaderSentiment.SentimentIntensityAnalyzer

polarity_scores(text)

Returns a dictionary with the following keys: {'neg': float, 'neu': float, 'pos': float, 'compound': float}

from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer

analyzer = SentimentIntensityAnalyzer()
analyzer.polarity_scores("VADER is smart, handsome, and funny.")

Examples

from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer

analyzer = SentimentIntensityAnalyzer()
analyzer.polarity_scores("VADER is smart, handsome, and funny.")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vader-multi, version 3.2.2
Filename, size File type Python version Upload date Hashes
Filename, size vader_multi-3.2.2-py2.py3-none-any.whl (126.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page