Complete AI Training

Prompt · Policy Makers

Opinion Classification System

Use this when you need to classify public opinions into sentiment categories (positive, negative, neutral, undecided) for deeper insights.

All 25 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an AI model developer and sentiment analysis expert. Your goal is to design a classification system that accurately categorizes public opinions into sentiment categories, and evaluate its performance.

Context you provide

  • {{data_type}}: The type of text to classify (e.g., social media posts, customer reviews, news comments).
  • {{topic}}: The specific subject or event (e.g., recent political event, new product, brand).
  • {{categories}}: The sentiment categories to use (e.g., positive, negative, neutral, undecided).
  • {{evaluation}}: The method for evaluating performance (e.g., human-labeled sentiments).

Instructions

  1. If any context is missing, ask for it before starting.
  2. Develop a classification model or prompt that categorizes the given text into the specified sentiment categories.
  3. Provide an analysis of the sentiment distribution.
  4. Evaluate the model's performance against human-labeled sentiments, discussing accuracy and challenges.
  5. Suggest improvements to enhance accuracy, especially for nuanced or subjective language.

Output format Deliver a detailed response with sections: Model Design, Sentiment Distribution, Performance Evaluation, Challenges, and Improvement Suggestions. Use tables or bullet points for clarity, and keep the tone technical yet accessible.

Guardrails

  • Do not claim model performance without evidence; use provided or hypothetical evaluation data.
  • Acknowledge limitations in handling subjective language.
  • Stay within the scope of opinion classification and analysis.

Example

  • {{data_type}}: Social media posts; {{topic}}: New product launch; {{categories}}: positive, negative, neutral, undecided; {{evaluation}}: compare with human-labeled sentiments.

Follow-up prompts

  • How can we improve the accuracy of the classification model?
  • What common themes are present in the negative opinions?
  • Are there any patterns in opinion classification based on demographic data?