Example of a Cloze-like Prompt for Polarity Classification
A cloze-like prompt for polarity classification structures the task as a fill-in-the-blank problem, where the model is expected to generate the appropriate label word at the end of the text. For example: 'Analyze the polarity of the following text and classify it as positive, negative, or neutral. Text: The service at the restaurant was slower than expected, which was a bit frustrating. The polarity of the text is negative'.
0
1
Tags
Foundations of Large Language Models
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Examples of Instruction-based Prompts for Polarity Classification
Example of a Prompt for Polarity Classification (Negative Sentiment)
Example of a Simple Prompt for Polarity Classification
An engineer needs to classify user feedback into one of three categories: 'Bug Report', 'Feature Request', or 'General Feedback'. To ensure the language model's output is strictly one of these labels, they decide to frame the problem as a sentence-completion task. Which of the following prompt structures best exemplifies this specific technique?
Improving LLM-based Ticket Classification
Rationale for Cloze-based Classification
Example of a Cloze-like Prompt for Polarity Classification