Roland Tanglao
About

Getting Started with Sentiment Analysis using Python

Dec 3, 2023

Discovered: Dec 3, 2023 09:21 Getting Started with Sentiment Analysis using Python <– 5 lines of python code, is this huggingface sentiment better than other python sentiment analysis tools?

pip install -q transformers
from transformers import pipeline
sentiment_pipeline = pipeline("sentiment-analysis")
data = ["I love you", "I hate you"]
sentiment_pipeline(data)

Leave a comment on github

Roland Tanglao

  • Roland Tanglao
  • roland@rolandtanglao.com
  • rtanglao
  • rtanglao

flickr.com/roland, twitter.com/rtanglao #firefox #thunderbird