Member-only story

Johnny Depp v Amber Heard Twitter Sentiment Analysis

Sophia Yang, Ph.D.
5 min readMay 21, 2022

--

Who is watching Johnny Deep vs. Amber Heard Defamation Trial? Yesterday in court, Ron Schnell, the director at Berkley Research Group, testified about the negative hashtags and tweets toward Amber Heard. So, that makes me wonder, why don’t I just try to do some simple text analysis on tweets that mentioned Johnny Deep and Amber Heard and see what the data shows. Okay, let’s get started:

fffPhoto by E. Diop on Unsplash

Setup

Here is the Github link for this article.

Let’s install the needed packages in your Conda environment conda install pandas numpy pytorch scikit-learn nltk hvplot transformers notebook pip -c default -c conda-forge and pip install snscrape, open up a Jupyter Notebook or Jupyter Lab, and import packages.

Load Hugging Face Pre-trained model

--

--

Responses (1)