Learn Before
Example

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

A zero-shot prompt applies a task instruction to a new input without any preceding examples. To classify the sentiment of a positive text, the prompt could be structured like this:

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

Input: The weather here is wonderful.'

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