Skip to content

⭐️ Sentiment Analysis Prompts

Abstract

This section covers the prompts for "Sentiment Analysis" task.

Sentiment Analysis is a task in natural language processing which involves classifying the given text into three labels namely positive, negative and neural. Depending on the sentiment expressed in the text, the text is classified into one of the labels.

Now you want to do sentiment analysis for tweets. For this, you can write a prompt like this

Prompt

You are an expert English linguist. Perform sentiment analysis on the given tweet and assign one of the 
labels = {positive, negative, neutral}.

Tweet: β˜€οΈ **Starting the day off with a grateful heart and a positive mind. Today is going to be a great 
day!** #positivevibes #newbeginnings #mindsetmatters

Constraints: First generate the label with the delimiter β€œSentiment Label” and then generate the explanation 
with the delimiter β€œExplanation”.

Sentiment Label:

Output

Sentiment Label: positive
Explanation: The tweet expresses positive emotions, such as gratitude and positivity. The hashtags #positivevibes, 
#newbeginnings, and #mindsetmatters further reinforce the positive sentiment.