Learn Before
Example

Example of a Zero-Shot Prompt for Polarity Classification (Positive Sentiment on Food)

A zero-shot prompt provides a task instruction to a model along with a new input, without any prior examples. For instance, to classify the sentiment of a positive statement about food, the prompt could 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: I love the food here. It's amazing! Polarity: '

0

1

Updated 2026-04-14

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

Related