Learn Before
Example

Example of Instantiating a Placeholder in a Grammaticality Judgment Prompt

To create a complete input for a language model, a placeholder variable within a prompt template is substituted with the actual text provided by a user. For example, consider the following template designed to evaluate a sentence's grammar:

{*sentence*} Question: Is this sentence grammatically correct? Answer:

By replacing the {*sentence*} placeholder with a specific user input, such as the sentence "John seems happy today.", the finalized input is ready to be processed by the language model.

0

1

Updated 2026-04-19

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences