Example

Example of Defining Category Semantics in a Polarity Classification Prompt

To enhance clarity in a polarity classification prompt, one can include definitions for each potential label. This involves not only instructing the model to classify the text but also explaining the meaning of each category. For instance, a prompt could state: 'Analyze the polarity of the following text and classify it as positive, negative, or neutral. Here’s what each category represents:'. This approach helps ensure the model's classification aligns with the intended standards.

0

1

Updated 2025-10-09

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