Learn Before
Example

Example of a Zero-Shot Prompt for Polarity Classification (Negative Sentiment)

A zero-shot prompt combines an instruction that defines the task with a new input for the model to process, without providing any prior examples. For instance, to classify the sentiment of a negative text, the prompt would be structured as follows:

'Assume that the polarity of a text is a label chosen from {positive, negative, neutral}. Identify the polarity of the input.

Input: The traffic is terrible during rush hours, making it difficult to reach the airport on time.'

0

1

Updated 2025-10-09

Contributors are:

Who are from:

Tags

Ch.1 Pre-training - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences