Concept

Classification via Prompt Completion

Text classification can be performed by analyzing the 'completion'—the specific word or phrase a model predicts to follow a given prompt. A simple prompting method involves concatenating an input text with a cue phrase to form a prompt. The generated completion then helps decide which category label is assigned to the original text. For instance, if the predicted completion indicates a positive sentiment (e.g., 'happy' or 'glad'), the text can be classified with a positive\mathrm{positive} label.

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