Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for Software 22.04.
Download
66 views
ubuntu2204-dev
Kernel: Python 3 (system-wide)
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer sid_obj= SentimentIntensityAnalyzer() text = 'CoCalc is an amazing platform for students to learn how to understand NLP!' sid_obj.polarity_scores(text)
{'neg': 0.0, 'neu': 0.746, 'pos': 0.254, 'compound': 0.6239}