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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for vader_multi-3.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 990d74bfa2d323cb92c59bf48e75f33cbf4d6d6a76d56ea6642c4fbbb65ff78d |
|
MD5 | 5031ccf033656374360070b24004bcf3 |
|
BLAKE2b-256 | a74f2f21d636ba7fce2523da4c97133b764d9a6681b6a6d48665725b9bcd9013 |