Example

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

Updated 2026-04-29

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences