Example

Example of a Simple Prompt for Polarity Classification

A simple prompt for polarity classification can be constructed by pairing a direct instruction with the text to be analyzed. The following is a complete example of such a prompt:

'Analyze the polarity of the following text and classify it as positive, negative, or neutral.

The service at the restaurant was slower than expected, which was a bit frustrating.'

0

1

Updated 2026-05-02

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related